question

alex-1957 avatar image
alex-1957 asked benjamin-dean answered

400 Bad Request - Access denied [C#, HttpWebRequest]

Hello,

We are not using SDK. We are writing our library we need to get Access Toke. So we use C# then Httpwebrequest.


After passing all instructions on API DOCs we receiving

400 Bad Request - Access denied [C#, HttpWebRequest]


Could you help us.

Thank you

getting started
1 |3000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

fabio-petito2112 avatar image
fabio-petito2112 answered
Thanks Benjamin for your help, now I receive a different response with different error code (400):
{
"error": "invalid_client"
"error_description": "Access Denied."
}

the credentials are the ones provided by my Dashboard after the login..




1 |3000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

benjamin-dean avatar image
benjamin-dean answered
That error usually means that the User credentials you are using do not belong to the same application/account (which is required during the initial stages of development).

Check that the username, extension, and password, are all part of a User/Extension which is enabled and defined in your Sandbox account in the [Sandbox version] of the Online Account Portal: https://service.devtest.ringcentral.com
1 |3000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Developer sandbox tools

Using the RingCentral Phone for Desktop, you can dial or receive test calls, send and receive test SMS or Fax messages in your sandbox environment.

Download RingCentral Phone for Desktop:

Tip: switch to the "sandbox mode" before logging in the app:

  • On MacOS: press "fn + command + f2" keys
  • On Windows: press "Ctrl + F2" keys