question

keith-stephens-fax5580 avatar image
keith-stephens-fax5580 asked Tyler Liu answered

sample or stub code to authenticate and get call logs from ringcentral using their api calls

Hello Everyone,

I am new to using web api, and I am new to using ringcentral.

I want to use ringcentals web api to log in from a c# web application and retrieve call log information for both inbound and outbound logs.

I have followed their steps on https://github.com/ringcentral/ringcentral-csharp-client but I just cannot or do not know what I am doing or how to do it.

In my page_load I am doing the Initialization and Authorizations as in their steps but I don't get logged in. I know my credz are fine because I can get into my testing environment ect..

Can some one provide example code of how to log in and show call logs in a c# web page?

Thanks,


authentication
1 |1500 characters needed characters left characters exceeded

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

1 Answer

Tyler Liu avatar image
Tyler Liu answered
Sorry for the late reply. I missed your question. 

Here is the code for authrization:  https://github.com/ringcentral/ringcentral-csharp-client#authorization

If you want to do authorization code flow instead, here is sample code:  https://github.com/ringcentral/ringcentral-demos-oauth/tree/master/csharp-nancy/csharp-client-nancy

Here is how you can get call log:  https://github.com/ringcentral/ringcentral-csharp-client/blob/90f545e7a9b07e024f34877e8ce71059755a56...
1 |1500 characters needed characters left characters exceeded

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