Requesting a Deezer access token
This is a personal reminder about the procedure described here. You might have landed on this page from deezer-datasync. We'll request a token with no expiration – an "offline" access token.
- Login on Deezer and go to Deezer for developers.
- Click on "My Apps", then on "Create a new Application". Here I'll
use example.com as an application domain. You'll need the
application ID (
APP_ID
below) and the secret key (SECRET_KEY
below), so keep them ready to paste. Go to this link:
https://connect.deezer.com/oauth/auth.php?app_id=APP_ID&redirect_uri=https://example.com&perms=offline_access
- Authorize the permissions.
You'll be redirected to example.com. Copy the code in the URL:
https://example.com/?code=[code]
Now visit this URL:
https://connect.deezer.com/oauth/access_token.php?app_id=APP_ID&secret=SECRET_KEY&code=CODE_FROM_ABOVE
You'll end up on a page delivering the token.
access_token=[access-token]&expires=0
- If you're coming from deezer-datasync, add it to
application.conf
underdeezer.token
(see example config in the README or source code).
Note that the token has no expiration. The only way I found to deactivate it (in case it is compromised, for example) is to edit the application and set 'Activate' to 'False'.