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
No problem doing read-only calls, but now I need to make a write call. I'm trying to get oauth verification working, with or without the builtin web server, but am a bit confused by the docs, which say "It is only available on the machine the application is running on, and listens on a random port." Do I need to run this server in a separate terminal? What is the startup command for it? Or does it run automagically?
Alternatively, we can use the oob approach. But when I implement the sample code in the docs:
if not flickr.token_valid(perms="write"):
flickr.get_request_token(oauth_callback="oob")
authorize_url = flickr.auth_url(perms="write")
webbrowser.open_new_tab(authorize_url)
verifier = input("Verifier code: ")
flickr.get_access_token(verifier)
I get a browser window, click OK, then it crashes on:
assert isinstance(new_verifier, six.text_type), 'verifier must be unicode text type'
AssertionError: verifier must be unicode text type
I did not see or get prompted to enter a code. Other github issues here point to py2 problems but I'm using python 3.78.
This is a CLI script. Happy to use either method, but oob seems most straightforward. Any idea why this might not be working?
The text was updated successfully, but these errors were encountered:
Using FlickrAPI 2.4 and Python 3.7.8.
No problem doing read-only calls, but now I need to make a write call. I'm trying to get oauth verification working, with or without the builtin web server, but am a bit confused by the docs, which say "It is only available on the machine the application is running on, and listens on a random port." Do I need to run this server in a separate terminal? What is the startup command for it? Or does it run automagically?
Alternatively, we can use the
oob
approach. But when I implement the sample code in the docs:I get a browser window, click OK, then it crashes on:
I did not see or get prompted to enter a code. Other github issues here point to py2 problems but I'm using python 3.78.
This is a CLI script. Happy to use either method, but oob seems most straightforward. Any idea why this might not be working?
The text was updated successfully, but these errors were encountered: