-
Notifications
You must be signed in to change notification settings - Fork 33
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
token_valid()
will always fail (and bin your token in the process)
#123
Comments
That said, I just tried to hack that code and put |
Hi @optilude In case it helps I have this small gist with the piece of code required for login into flickr just in case you want to test it out to compare: flickrapi login example |
I am not sure what the deal is with
|
I followed the "out-of-band" example for getting a token:
I then noticed that this requires a new authorization every time, i.e.
flickr.token_valid()
always returned false. Moreover, I found that after this function call, the token was erased from the sqlite database.I believe the problem is this line:
flickrapi/flickrapi/core.py
Line 564 in a4a9670
This uses this API call, presumably: https://www.flickr.com/services/api/flickr.auth.oauth.checkToken.html
However, that takes two arguments:
api_key
andoauth_token
, neither of which appears to be passed. It therefore fails each time with status code 200 and body:Annoyingly, the
token_valid()
call then deletes your cached token as well.The text was updated successfully, but these errors were encountered: