# Get the authorization code from the user code = input('Enter the authorization code: ')
import deezer
# Exchange the code for a user token token = api.get_token(code)
import requests
# Set up the API endpoint and headers endpoint = 'https://api.deezer.com/user' headers = {'Authorization': f'Bearer {user_token}'}
# Replace with your user token user_token = 'YOUR_USER_TOKEN'
Copyright © 2019 Spreekbuis