From 9ecb657f89eb28b6841b7819e815b5cc1ef600ac Mon Sep 17 00:00:00 2001 From: Jim Ciallella Date: Wed, 4 Sep 2019 19:10:54 -0400 Subject: [PATCH] Remove use of Meetup API key since the v2 API has deprecated key authentication. 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. --- app.py | 4 ++-- config.ini.example | 3 --- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/app.py b/app.py index 8c12040..8ae56c8 100644 --- a/app.py +++ b/app.py @@ -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: diff --git a/config.ini.example b/config.ini.example index d2d5163..f95576d 100644 --- a/config.ini.example +++ b/config.ini.example @@ -1,9 +1,6 @@ [flask] secret_key = secret -[meetup] -api_key = abc123 - [eventbrite] token = ABC123