API: How do refresh tokens work?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2016
11:34 AM
I am trying to us e a refresh token to get a new access token, but I keep getting a 500 error.
Here is my request:
payload = {
'client_id': client_id,
'client_secret': client_secret,
'grant_type': 'refresh_token',
'refresh_token': refresh_token
}
response = requests.post('https://<account_name>.instructure.com/login/oauth2/token', headers={'Content-Type': 'application/json'}, json=payload)
print response