Skip to content

Instantly share code, notes, and snippets.

@chriscarlsondev
Last active May 21, 2019 19:53
Show Gist options
  • Save chriscarlsondev/91967ff685a7603457f49c14eee1950a to your computer and use it in GitHub Desktop.
Save chriscarlsondev/91967ff685a7603457f49c14eee1950a to your computer and use it in GitHub Desktop.
My answers for the Reading API Documentation 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. https://developers.google.com/youtube/v3/docs/subscriptions/list Required parameter:
  • part (data type: string, example value: snippet) Optional parameters:
  • forChannelId (data type: string, example value: comma separated list of channel IDs)
  • order (data type: string, example value: alphabetical)
  1. 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. Do the same for your own address.

The Statue of Liberty https://maps.googleapis.com/maps/api/geocode/json?&address=The%20Statue%20of%20Liberty

My Address https://maps.googleapis.com/maps/api/geocode/json?&address=351%20E%20MAIN%20ST%20SUN%20PRAIRIE%20WI%2053590

  1. Visit the meetup.com API docs found here: https://www.meetup.com/meetup_api/. Answer the following questions:
  • Does this API require authentication? Most Meetup API endpoints require member authentication for context.
  • Does this API support CORS? The Meetup API supports the CORS.
  • Find the events search endpoint documentation. Describe in detail the response format of the events search endpoint. I did not find a specific events search endpoint. There is a Get Event end point in the version 3 of their documentation. It fetches a Meetup Event by group urlname and event_id. ome Meetup group organizers may choose to limit the visibility of their group's content. In these cases, some fields may be omitted from the response if the authenticated member is not a member of the group hosting a given Event.
  • What are the limitations placed on the number of requests that can be made? The Meetup API aims to provide consistent responsiveness and equal quality of service for all its consumers. In order to do so, we limit the frequency at which the API will produce successful responses to a single client. Here are hte limitations I am getting for events: X-RateLimit-Limit - 30 (The maximum number of requests that can be made in a window of time) X-RateLimit-Remaining - 29 (The remaining number of requests allowed in the current rate limit window) X-RateLimit-Reset - 10 (The number of seconds until the current rate limit window resets) So it looks like you can make a maximum of 30 requests every 10 seconds.
  • List the errors that you can expect when making calls to this API. Requesting an invalid event will result in a 404 not found error. Requesting Drafted event by user with non-leadership event will result in Forbidden 403 Requesting a previously deleted event will result in a 410 Gone error
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment