Skip to content

Instantly share code, notes, and snippets.

@RandyWritesCode
Last active July 21, 2020 17:42
Show Gist options
  • Save RandyWritesCode/ba46a52c7719fddff5fc0b82feb442c3 to your computer and use it in GitHub Desktop.
Save RandyWritesCode/ba46a52c7719fddff5fc0b82feb442c3 to your computer and use it in GitHub Desktop.

Assignment:

  1. Subscription Endpoint https://www.googleapis.com/youtube/v3/subscriptions A. Required parameter:

    1. key: part
    2. data type: string
    3. example: snippet B. Optional parameter 1:
    4. key: maxResults
    5. data type: unsigned integer
    6. example: 23 C. Optional parameter 2:
    7. key: order
    8. data type: string
    9. example: unread
  2. GeoCoding A. Statue of Liberty: I couldn't figure it out. this is what i came up with https://maps.googleapis.com/maps/api/geocode/outputFormat?component=country:USA&result_type=point_of_interest:statue+of+liberty&key=(myauthkey;-))

    B. Home address: { "results": [ { "address_components": [ { "long_name": "67", "short_name": "67", "types": [ "street_number" ] }, { "long_name": "Harry S Truman Drive", "short_name": "Harry S Truman Dr", "types": [ "route" ] }, { "long_name": "Largo", "short_name": "Largo", "types": [ "locality", "political" ] }, { "long_name": "13, Kentland", "short_name": "13, Kentland", "types": [ "administrative_area_level_3", "political" ] }, { "long_name": "Prince George's County", "short_name": "Prince George's County", "types": [ "administrative_area_level_2", "political" ] }, { "long_name": "Maryland", "short_name": "MD", "types": [ "administrative_area_level_1", "political" ] }, { "long_name": "United States", "short_name": "US", "types": [ "country", "political" ] }, { "long_name": "20774", "short_name": "20774", "types": [ "postal_code" ] } ], "formatted_address": "67 Harry S Truman Dr, Largo, MD 20774, USA", "geometry": { "bounds": { "northeast": { "lat": 38.8892897, "lng": -76.83731340000001 }, "southwest": { "lat": 38.8890631, "lng": -76.83772089999999 } }, "location": { "lat": 38.8891885, "lng": -76.8375446 }, "location_type": "ROOFTOP", "viewport": { "northeast": { "lat": 38.8905253802915, "lng": -76.8361681697085 }, "southwest": { "lat": 38.8878274197085, "lng": -76.83886613029151 } } }, "place_id": "ChIJJWBW_-W_t4kR-3B1tnpwaF0", "types": [ "premise" ] } ], "status": "OK" }

3.  Meetup:
  Does this API require authentication? - yes.  "Most requests must be authenticated. Unless otherwise specified, response payloads are returned in JSON format."

Does this API support CORS? yes. "The Meetup API supports the CORS specification" Find the events search endpoint documentation. Describe in detail the response format of the events search endpoint. (HINT: You may need other keywords to find this endpoint.). https://www.meetup.com/meetup_api/docs/find/upcoming_events/ the results return a list of event objects and the resolved city, many parameters fall under these two objects

What are the limitations placed on the number of requests that can be made? X-RateLimit HTTP headers give you information on how many API requests you make. If you make too many, you will be throttled, and if you continue you will be blocked for an hour. 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 an unexpected error occured on our servers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment