-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add OAuth support #51
Comments
If I understand this correctly, this means that anyone who wants to use our package will have to either have applied for free OAuth access by Aug 15 or be a meetup.com pro member? That's NOT GOOD! Here is the sign-up link: https://secure.meetup.com/meetup_api/oauth_consumers/create/ |
If anyone wants to join forces, I'm looking into it this week - I'm hoping that adapting the examples in httr won't be too hard to do... |
@GregSutcliffe: Should we make a list of things that need to be changed? |
@gdequeiroz seems reasonable. I think we can just implement a token-getting process as shown in |
OK, so as an extremely hacky first try, I've got With a basic test completed, here's what I think needs to happen:
Once the token is cached, we need to modify Once OAuth is working, we can check to see if there's any v2 API calls being made, since that's also being deprecated 🙄 @gdequeiroz thoughts? |
Spending a few moments thinking about this, it seems like:
Is a good possible solution to:
If we set up |
We have two options here to not break existing users' code:
No, we always use the helpers, so all you have to do is modify them.
Yes, this is a great idea. I will create a new meetup account specifically for this purpose and generate a key for that account that we can use.
I think all of our calls are v3, but good to double check. Thanks! |
@GregSutcliffe Some guidelines on using the API:
|
@ledell Thanks for the feedback. I agree with deprecating rather than outright removing, for now at least. The I don't think they used the phone number I provided (I actually put in my work desk phone, which since I work remotely, isn't connected to anything....). The process went through in milliseconds, so it seems automated. As for protecting user data, since the callback URL is I'll take a shot at a decent PR and get that submitted. Hopefully today, we'll see how it goes. |
@ledell also (and I'm sure you know this, but just to be sure), the redirect URL is specified on the Meetup side, so when you register the app, remember to use |
If you're looking for design inspiration, I recorded the preferred OAuth design for gargle/googledrive/bigrquery/googlesheets4 in this vignette: https://gargle.r-lib.org/articles/gargle-auth-in-client-package.html You won't be using gargle (which is Google specific), but the overall design of how to do auth is pretty general I think and could be adapted. |
@jennybc thanks! I've already got a working solution based on your older code for googlesheets3 which I adapted to |
@GregSutcliffe Yeah the approach described in the linked gargle vignette is the current evolutionary state of patterns already in use in that whole set of packages, even going back to googlesheets. It's just gradually gotten cleaner as it gets refined in each package and, since they are all Google APIs, it finally got centralized in gargle. But it's all part of a single evolving design pattern. |
Largely patterned on the code in googlesheets3, see https://github.com/jennybc/googlesheets/blob/master/R/gs_auth.R for comparisons.
Largely patterned on the code in googlesheets3, see https://github.com/jennybc/googlesheets/blob/master/R/gs_auth.R for comparisons.
Largely patterned on the code in googlesheets3, see https://github.com/jennybc/googlesheets/blob/master/R/gs_auth.R for comparisons.
Largely patterned on the code in googlesheets3, see https://github.com/jennybc/googlesheets/blob/master/R/gs_auth.R for comparisons.
We're done here! Thanks again @GregSutcliffe. |
Here's an announcement from meetup.com. We need to add support for OAuth, deprecate
api_key
(I guess we should not remove it from the functions because it will break people's code but we should tell people that it's not active anymore), update the docs and re-test everything. :-(Changes to our API access
The text was updated successfully, but these errors were encountered: