The curl request mentioned in docs for refreshing access token returns the following message:
“The request entity has a media type which the server or resource does not support.”,
1 Like
Hi,
Sorry for the inconvenience caused.
Correct cURL should be :
curl -X POST https://api.codechef.com/oauth/token -H ‘content-Type: application/json’ -d ‘{“grant_type”:“refresh_token” , “refresh_token”:“{your_refresh_token}”, “client_id”:“{your_client_id}”,“client_secret”:“{your_client_secret}”}’
We will update this on documentation as well
1 Like