You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to adapt the OAuth1 Workflow documentation to authenticate with the Flickr API. Flickr has a workflow diagram on their site. I wrote the attached script, which is mostly copy/paste of the code from the referenced workflow. I think it follows the Flickr workflow diagram. It seems to work except doesn't return a client verifier. (In particular, I was able to interactively authorize access with the constructed authorization_url.) Here's the output of the successful bits (with suitable elisions):
Traceback (mostrecentcalllast):
File"/home/skip/tmp/flickr_oauth.py", line38, in<module>oauth_tokens=oauth.fetch_access_token(access_token_url)
File"/home/skip/miniconda3/envs/python39/lib/python3.9/site-packages/requests_oauthlib/oauth1_session.py", line322, infetch_access_tokenraiseVerifierMissing("No client verifier has been set.")
requests_oauthlib.oauth1_session.VerifierMissing: Noclientverifierhasbeenset.
The Flickr API workflow indicates that it "[r]edirects user back to Application, passing oauth_verifier." Indeed, the returned oauth_response dict lacks an oauth_verifier key:
{'oauth_token': 'blah-blah'}
I know this is really a help request, not a bug report, but I couldn't see anywhere to ask usage questions for this package. Reference to the correct place is welcome, as would information about what I've done wrong.
I'm trying to adapt the OAuth1 Workflow documentation to authenticate with the Flickr API. Flickr has a workflow diagram on their site. I wrote the attached script, which is mostly copy/paste of the code from the referenced workflow. I think it follows the Flickr workflow diagram. It seems to work except doesn't return a client verifier. (In particular, I was able to interactively authorize access with the constructed
authorization_url
.) Here's the output of the successful bits (with suitable elisions):I get this traceback:
The Flickr API workflow indicates that it "[r]edirects user back to Application, passing oauth_verifier." Indeed, the returned
oauth_response
dict lacks anoauth_verifier
key:I know this is really a help request, not a bug report, but I couldn't see anywhere to ask usage questions for this package. Reference to the correct place is welcome, as would information about what I've done wrong.
flickr_oauth.py
The text was updated successfully, but these errors were encountered: