I have been using the password flow just fine, however RingCentral will deprecate it and I am moving to Oauth2.0. However I am running into issue and I keep getting the error OAU-250 Unsupported grant type.
This is the URL I am using:
POST Request: https://platform.ringcentral.com/restapi/oauth/token
Params:
grant_type = authorization_code
redirect_uri = url
code = code gotten back from the url
client_id = client_id
Headers:
Content-Type = application/x-www-form-urlencoded
Accept = application/json
Authorization = Basic (base64encode"clientid:clientsecret")
Any feedback is well appreciated.