Skip to content

Instantly share code, notes, and snippets.

@CodeLikeAGirl29
Created March 29, 2021 00:59
Show Gist options
  • Save CodeLikeAGirl29/d823ccbb7b4069683454504c15a69645 to your computer and use it in GitHub Desktop.
Save CodeLikeAGirl29/d823ccbb7b4069683454504c15a69645 to your computer and use it in GitHub Desktop.
for the API thinkful assignment
1.) Visit the YouTube API documentation discussed above and find the subscription list endpoint documentation. List 1 required parameter and 2 optional parameters for this endpoint. For each parameter listed, state the data type and give an example of the allowed values. -required parameter: part, datatype: string, value example: snippet
optional
--parameter: maxResults, datatype: unsigned integer, values: 0-50, default:5
--paramter: order, datatype: string, value: subscription_order_relevance
2.) Visit the Google Maps Geocoding API documentation found here: https://developers.google.com/maps/documentation/geocoding/intro. Construct the full URL for requesting the geographic coordinates of The Statue of Liberty in JSON format.
New York, NY 10004
****** --https://maps.googleapis.com/maps/api/geocode/json?address=NewYork,+NY+10004&key=YOUR_API_KEY
Do the same for your own address.
------------------
Visit the meetup.com API docs found here: https://www.meetup.com/meetup_api/.
Answer the following questions:
1.) Does this API require authentication?
--Yes
2.) Does this API support CORS?
--Yes
3.) Find the events search endpoint documentation. Describe in detail the response format of the events search endpoint. --the response returns a list of vent objects and the resolved city https://www.meetup.com/meetup_api/docs/find/upcoming_events/
4.) What are the limitations placed on the number of requests that can be made?
--there aren't any specific ones here ---You know your current rate limit status by reading X-RateLimit HTTP headers included in the responses. The following table indicates their name and meaning.
Header name Meaning X-RateLimit-Limit The maximum number of requests that can be made in a window of time X-RateLimit-Remaining The remaining number of requests allowed in the current rate limit window X-RateLimit-Reset The number of seconds until the current rate limit window resets Clients that issue too many requests in a short period of time will receive a HTTP 429 error and an error message.
5.) List the errors that you can expect when making calls to this API.
--400 Bad request when there was a problem with the request --401 Unauthorized when you don't provide a valid token --429 Too Many Requests when you've gone over your request rate limit --500 Internal Server Error if we messed up -- please let us know!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment