question

nick-lagerquist avatar image
nick-lagerquist asked ·

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?
topic-default
1 |1000 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.

automation-usa avatar image
automation-usa answered ·
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 Share
1 |1000 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.

According to documentation, date format is   ISO 8601 format including timezone, for example 2016-03-10T18:07:52.534Z.
0 Likes 0 · ·
nick-lagerquist avatar image
nick-lagerquist answered ·
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 Share
1 |1000 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.

There isn't such a parameter. You have to fetch the data then do sorting in your code.
0 Likes 0 · ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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