Created
June 5, 2017 16:12
-
-
Save patrickspencer/5af92dc426416f73c799e5adc7cb564d to your computer and use it in GitHub Desktop.
Accessing the meetup api with python
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import pprint | |
| import requests | |
| # put in your api key below | |
| api_key = "" | |
| pp = pprint.PrettyPrinter(indent=4) | |
| urlname = "ny-tech" | |
| event_id = 3428886 | |
| url = "https://api.meetup.com/{}/events/{}/rsvps?key={}".format(urlname, event_id, api_key) | |
| r = requests.get(url) | |
| print(pp.pprint(r.json())) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment