Question

where to use access_token

  • 11 July 2017
  • 2 replies
  • 1693 views

Is there anyone who can help me in using Access_token in my PHP Web Application.

right now i am stuck on access_token and i want to test my Fax function but Using PHP SDK i am stuck on Refresh_token function it is giving error and looks like my SDK is not using Access_token....



i am getting this error

authData.php Auth exception: Refresh token has expired Exception: Unauthorized for this grant type SDK HTTP Error at https://platform.devtest.ringcentral.com/restapi/oauth/token Response text: { "error" : "unauthorized_client", "error_description" : "Unauthorized for this grant type", "errors" : [ { "errorCode" : "OAU-251", "message" : "Unauthorized for this grant type" } ] }


2 replies

Hi Tayyab,

It seems you selected the wrong Platform type (other types than the "Server-only/(No UI)" for your RingCentral app. If your Web app uses the PHP SDK to authenticate and access RingCentral APIs directly, you must select the "Server-only/(No UI)" for the Platform type.

Try to create a new app with that platform type and test again.

Kind regards,
Paco
i have created another app with Server no UI but now i am not able to authorize it 

Reply