Skip to main content
The First Step
Nov 21, 2017 7:28 PM UTC
Question

C# with RC Api login error

Hello All,

I am trying to create a C# web application using RC API's for C#.

In my page_load method I try to log into RC using their tutorial for C# api, but I cannot get logged in.

I get error Request to https://platform.devtest.ringcentral.com/restapi/oauth/token failed with status code 400 (Bad Request).


I can log into developer.reingcentral.com just fine, but through my web app it will not log in.

I eventually want to log in, and get a list/count of all calls made by all users, so I can report on how many calls each user has made, and put that into a gridview.


Can anyone help and or provide sample code on how to properly setup my Sandbox with the proper platform type, and steps on how I should set up my web app.

Thanks,

KS.

2 replies

Employee
Nov 22, 2017 2:18 AM UTC
Please use this SDK to access platform API: https://github.com/ringcentral/ringcentral-csharp-client

There is sample code in README file. If you have problem doing authorization, please post your code here.
The First Step
Jun 29, 2019 5:29 AM UTC

400 (Bad Request means you are not able to provide correct request to the oauth API.

Did you checked by calling the API directly?

Can you prove the code snippet snippet to get the root cause detected?