Refresh access_token

I make a post request:
url = ‘https://api.twitch.tv/kraken/oauth2/token
‘–data-urlencode’
‘?grant_type=refresh_token’
‘&refresh_token=’ + str(refresh_token) + ‘&client_id=’ + ‘’ + ‘&client_secret=’ + ‘’
res = requests.post(url).text
But in return comes this:
{“error”:“Not Found”,“status”:404,“message”:null}
What have I done wrong?

As per the docs → Authentication | Twitch Developers

You need to POST to

https://id.twitch.tv/oauth2/token

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.