Skip to content
This repository has been archived by the owner on Jan 25, 2024. It is now read-only.

Commit

Permalink
Remove use of Meetup API key since the v2 API has deprecated key auth…
Browse files Browse the repository at this point in the history
…entication. It turns out there is no need for authentication on the v2 or v3 event related endpoints that we need. However, if we did need to authenticate it would require setting up an Oauth 2 consumer app.
  • Loading branch information
allella committed Sep 4, 2019
1 parent 9ecf5cd commit 9ecb657
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
4 changes: 2 additions & 2 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ def get_group_lists():
def get_meetup_events(group_list):
group_ids = [i['field_events_api_key'] for i in group_list]
group_ids_str = ','.join(str(group_id) for group_id in group_ids)
api_key = config.get('meetup', 'api_key')

# find all upcoming OR cancelled, including "limited" visibility events, for all the group IDs for Meetup.com
url = 'https://api.meetup.com/2/events?key={key}&status=upcoming,cancelled&limited_events=true&group_id={ids}'.format(key=api_key, ids=group_ids_str)
url = 'https://api.meetup.com/2/events?status=upcoming,cancelled&limited_events=true&group_id={ids}'.format(ids=group_ids_str)

r = requests.get(url)
if r.status_code != 200:
Expand Down
3 changes: 0 additions & 3 deletions config.ini.example
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
[flask]
secret_key = secret

[meetup]
api_key = abc123

[eventbrite]
token = ABC123

Expand Down

0 comments on commit 9ecb657

Please sign in to comment.