question

amosgnanaraj j avatar image
amosgnanaraj j asked Phong Vu answered

How to use RC API in C# that is created as Web Based App

Hi,

I have an App created with API App as "Web browser (Javascript)". I want to consume RC API and get data using c#. However I am getting error as "Unauthorized for this grant type" when I call RC API from C# code with App Credentials of "Web Browser" App. Is there any way I could call an API from C# using the credentials of "Web Browser" app?

Thanks in advance,

Amos

rest api
1 |3000

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

1 Answer

Phong Vu avatar image
Phong Vu answered

A RingCentral "Web Browser" app type requires OAuth authorization flow authentication. This means that you cannot use the password flow authentication (that was why you got the error above).

Follow the instruction on this Dev Guide to implement OAuth for your "Web Browser" based app.

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