question

Customer Service avatar image
Customer Service asked Customer Service commented

API Error Detail

Hello,

My API console says I have errors. How can I see the error details through the Console. The Endpoints did not provide the error detail, just some times. I need the error detail to troubleshoot.

Thank You,

Jay

getting started
1 comment
1 |3000

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

Customer Service avatar image Customer Service commented ·

For clarification, when I say API Console, I mean the API App info listed on:

https://developers.ringcentral.com/my-account.html#/application-dashboard

I'm writing an ASP.Net web forms application, not a .Net Console application.

0 Likes 0 ·

1 Answer

Anirban avatar image
Anirban answered Customer Service commented

Which API are you using?

The first step is test your API in https://developers.ringcentral.com/api-reference/ or in a postman tools with all the input data.

If it still gives you an error there, not the HTTP error status, API response and put here.

We can then troubleshoot the issue.

3 comments
1 |3000

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

Customer Service avatar image Customer Service commented ·

I used this NuGet package:

Install-Package RingCentral.Net -Version 3.2.0


0 Likes 0 ·
Customer Service avatar image Customer Service commented ·

Which authorization method should an ASP.Net application use?
Can you point me to a code sample in C#?
The samples i saw seemed to use password-flow, yet in other places I saw that only console apps can use password flow.

When I was setting up my API App, the QuickStart said that the most common App Type was 'Web server.' However, I could not find a C# code example for Authorization from Web server.

0 Likes 0 ·
Customer Service avatar image Customer Service commented ·

My code (in VB.Net but happy to work from C#)

Dim restClient As RestClie
restClient = New RestClient(RINGCENTRAL_CLIENTID, RINGCENTRAL_CLIENTSECRET, RINGCENTRAL_PRODUCTION)
restClient.Authorize(RINGCENTRAL_USERNAME, RINGCENTRAL_EXTENSION, RINGCENTRAL_PASSWORD).Wait()

Dim parameters = New MeetingRequestResource()
parameters.topic = "Test Meeting"
parameters.meetingType = "Instant"
parameters.allowJoinBeforeHost = True
parameters.startHostVideo = True
parameters.startParticipantsVideo = False
Dim resp = Await restClient.Restapi().Account().Extension().Meeting().Post(parameters)

The code never returns a response from Dim resp = Await restClient.Restapi()..... and no exception is thrown.

0 Likes 0 ·

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