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 obtain access token? #414

Closed
TheShubhendra opened this issue Dec 19, 2021 · 3 comments
Closed

How to obtain access token? #414

TheShubhendra opened this issue Dec 19, 2021 · 3 comments
Labels
answered Automatically closes as answered after a delay

Comments

@TheShubhendra
Copy link

I am passing app_id and app_secrer to the client object, so it should request an access token automatically, but it doesn't

@browniebroke
Copy link
Owner

It doesn't, our documentation has a section on authentication. Because this has to be authorized client side (the user has to enter their username & password to authorise your app), we cannot do it just with the app ID and app secret. Our API is a bit misleading, we should probably drop these parameters as they aren't really used.

If you don't have a server yet to do the client side auth, you may obtain a token by running the oauth.py script. It's more a tool to develop on Deezer Python itself than for users of the library, but it might be useful to tinker in early stages. The documentation has a section on how to use it.

Let me know how this goes, if anything is unclear, we can improve the docs.

@browniebroke browniebroke added the answered Automatically closes as answered after a delay label Dec 20, 2021
@github-actions
Copy link
Contributor

Assuming the original issue was solved, it will be automatically closed now.

@browniebroke
Copy link
Owner

I've released a CLI tool if you need to obtain a token to play with the API: https://pypi.org/project/deezer-oauth-cli/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
answered Automatically closes as answered after a delay
Projects
None yet
Development

No branches or pull requests

2 participants