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
{{ message }}
This repository was archived by the owner on Nov 23, 2024. It is now read-only.
And i use this code to get the token for my application:
ifos.getenv('FLICKR_API_KEY'):
self.stdout.write(self.style.SUCCESS('No ENV found'))
# Only do this if we don't have a valid token alreadyifnotsettings.FLICKR.token_valid(perms='read'):
self.stdout.write(self.style.SUCCESS('Need new token'))
# Get a request tokensettings.FLICKR.get_request_token(oauth_callback='oob')
# Open a browser at the authentication URL. Do this however# you want, as long as the user visits that URL.authorize_url=settings.FLICKR.auth_url(perms='read')
print(authorize_url)
self.stdout.write(self.style.SUCCESS(authorize_url))
# webbrowser.open_new_tab(authorize_url)# Get the verifier code from the user. Do this however you# want, as long as the user gives the application the code.verifier=str(input('Verifier code: '))
# Trade the request token for an access tokensettings.FLICKR.get_access_token(verifier)
else:
self.stdout.write(self.style.SUCCESS('No login needed'))