-
-
Notifications
You must be signed in to change notification settings - Fork 621
Add verb-dependent token mode #670
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
Conversation
Pull Request Test Coverage Report for Build 17541833529Details
💛 - Coveralls |
@mrj Thanks for this. Reviewing it now, but just noticing that the three failures are probably due to RuboCop style.
First try:
bin/rake rubocop_gradual:autocorrect
If it fails you can either fix them, or punt them into the future, and run:
bin/rake rubocop_gradual:force_update
@mrj Also, we are working on things at the same time, so please rebase on latest main!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, just needs rebase and style linting.
I'll fix the style in post ;) Merging
Uh oh!
There was an error while loading. Please reload this page.
The Instagram API uses
:query
token mode forGET
requests and:header
mode forPOST
andDELETE
requests, not only for endpoint calls but for getting and refreshing long-lived tokens. So instead of a fixed mode, anAccessToken
needs its mode to to be request-verb-dependent. This PR implement this.Two things I haven't done:
from earlier in the spec file. Not that important given that the normal mode-switching works.