Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
url_access_token = ""
payload = {
'grant_type' : 'authorization_code',
'code' : auth_code,
'redirect_uri' : redirect_uri,
'client_id' : client_id,
'client_secret' : client_secret
response =, params=payload)
response_json = response.json()
# Extract the access_token from the response_json
access_token = response_json['access_token']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment