-
Notifications
You must be signed in to change notification settings - Fork 33
No token after authentication. #92
Comments
Your initial script works fine for me, using Python 2.7.9 (I'm assuming you're using 2.7 because your print statements are invalid in Python 3.x). This is my output:
Which version of Python are you using? |
@sybrenstuvel: thanks for your answer. Just to confirm: now I can copy the token "number" and re-use it without having to authorize the application again, right? |
Just out of curiousity: why are you still using 2.7?
That is strange, but I'm glad it works now.
Correct. |
I'm still on Python 2.7 because I was just trying to patch an existing application, flickr-uploadr, which I didn't write. Unfortuntely, I still get:
|
Provide example code that actually matches your situation. You're apparently using the JSON format in your code, whereas in the original example you do not. |
Here's the code: I had downloaded it from somewhere but I can't find the original source. |
Any idea? I find it quite curious that it keeps working with an account authorized previously but not if I try now. |
Hello @rispoli, the code you reference seems to be the same as https://github.com/trickortweak/flickr-uploader -- didn't check which one is more recent. It needs OAUTH updating to the new method (check issue trickortweak/flickr-uploader#86) and also changing all the self.urlgen function calls which generates old authentication POST URLs into @sybrenstuvel flickrapi: this to allow the excellent functionality of flickr-uploadr of UPDATE, REPLACE, DELETE to work. Any help on updating flicrk-uploadr is most welcome. |
@rispoli I am using a different project that was built to use the new OAUTH method. See here https://github.com/alfem/synology-flickr-folder-uploader/blob/master/flickr-folder-uploader.py It seems to work fine outside of every 2-3 days I must reauthenticate with OAUTH with a new access code? Not sure why that is happening. |
Maybe a bit off-topic, I'm sorry sybrenstuvel: @rispoli and @bigzdog I've used sybrenstuvel's excellent flickrapi and I've forked flickr-uploadr to improve it. Version 2.5.10 is out on this link
Do read the README.mdEnjoy! And help out testing! I've applied to a secondary account on flickr.com for testing. |
Hi all. Was trying to authenticate my custom application following some examples but couldn't get it to work.
Would you please point me to my mistake?
I tried:
and also
authenticate_via_browser
instead ofauthenticate_console
but, in both cases, the last two print returns:while no error with the browser interaction is ever shown.
I also tried the longer:
which, unfortunately, results in exactly the same outcome.
Could you, please, help me out with this authentication issue?
I just need a token number that I can store somewhere to be read afterwards.
Thanks in advance,
Daniele
The text was updated successfully, but these errors were encountered: