Skip to content
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

How to use already existing api key, secret and access_token ? #137

Open
khurshid-alam opened this issue Nov 6, 2023 · 3 comments
Open

Comments

@khurshid-alam
Copy link

I already have access token generated from other python script. How do I use that ?

Is thare a way to create "auth.txt" manually and then pass it to handler ? I just don't know the format of auth.txt file.

flickr.set_keys(api_key="YOUR_API_KEY",
                api_secret="YOUR_SECRET_KEY")
flickr.set_auth_handler(".auth.txt") # or whatever you save your auth file as
@beaufour
Copy link
Collaborator

beaufour commented Nov 8, 2023

I've honestly not looked at the authentication code for quite a while, but the wiki has this information:
https://github.com/alexis-mignon/python-flickr-api/wiki/Flickr-API-Keys-and-Authentication

@khurshid-alam
Copy link
Author

khurshid-alam commented Nov 8, 2023

Yes. I want to know what usually stores in auth.txt file ? Is it access token ?

I just don't want to go through authentication process just to retrieve a new token.

@beaufour
Copy link
Collaborator

ah, I didn't read your question properly. The format is a file with two lines. The first is the token key and second is the token secret

token_key
tokey_secret

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants