C# with RC Api login error

  • 1
  • Question
  • Updated 11 months ago
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.
Photo of Keith Stephens

Keith Stephens

  • 142 Points 100 badge 2x thumb

Posted 11 months ago

  • 1
Photo of Tyler Long

Tyler Long, Official Rep

  • 7,722 Points 5k badge 2x thumb
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.