question

nick-lagerquist5249 avatar image
nick-lagerquist5249 asked Tyler Liu commented

Getting Call Log History

Using the following request url I can get the most recent 1000 calls from the call log. This is about 3 days of calls.

https://platform.ringcentral.com/restapi/v1.0/account/~/call-log?view=Detailed&perPage=1000


If I wanted to get call logs starting in January 2017 how would I go about doing that?

admin portal
1 |3000

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

Julio Toledo avatar image
Julio Toledo answered Tyler Liu commented
Hi Nick,

Use the 'dateTo' and 'dateFrom' filters to set the staring and ending points for your call log request:

https://platform.ringcentral.com/restapi/v1.0/account/~/extension/~/call-log?view=Detailed&perPage=1000&dateTo=2017-03-31&dateFrom=2017-01-01
Source:
https://developer.ringcentral.com/api-docs/latest/index.html#!#RefExtensionCallLog.html

P.S. You can use only 'dateFrom', or only 'dateTo', or both.





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.

Tyler Liu avatar image Tyler Liu ♦ commented ·
According to documentation, date format is   ISO 8601 format including timezone, for example 2016-03-10T18:07:52.534Z.
0 Likes 0 ·
nick-lagerquist5249 avatar image
nick-lagerquist5249 answered Tyler Liu commented
Thanks for these responses!

Is there a parameter to sort the records?

For example, if I use dateFrom=2017-01-01 and dateTo=2017-01-31 and there are more then 1000 records I get the last 1000 starting from 2017-01-31. Is there a sort parameter so I could get the first 1000 records starting from 2017-01-01?
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.

Tyler Liu avatar image Tyler Liu ♦ commented ·
There isn't such a parameter. You have to fetch the data then do sorting in your code.
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