-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Meetup Client: Refactor to stop using v2 API endpoints (#209)
Meetup will apparently shut down all of the v2 API endpoints on 2019-08-15. Our client was still using the v2 `events` endpoint, so this refactor changes that to get as close as possible to the same dataset using v3 endpoints. It's not a perfect match, though, and the v3 API is not friendly towards our use case of pulling events from a large number of different groups all at once. Client changes: * Refactor the `get_events` method * Remove unused signing method * Add a request header for accepting json content type * Adjust the throttle mechanism to be a bit more conservative * Sanitize group slugs before using them in API endpoint requests This also refactors the Meetup Events report in the WordCamp Reports plugin, since the refactored `get_events` method isn't a drop-in replacement.
- Loading branch information
1 parent
cb785aa
commit d6fb954
Showing
3 changed files
with
114 additions
and
62 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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