How can I check my all previous call details using api? Now I can see only last day call list.

Posted in General by Sleek Tue Oct 03 2017 06:48:59 GMT+0000 (Coordinated Universal Time)·1·Viewed 526 times

How can I check my all previous call details using api? Now I can see only last day call list.
Wai Yuen
Nov 9, 2017

By default the List Call Logs API return 25 call details. You may request up to 500 call details with the 'limit' parameter. Combining with the 'offset' parameter, you can see all previous call details. The response returns the 'total' field which is the total number of call logs in your account, which you can use to check when to end the loop.

For example:

https://api.phone.com/v4/accounts/234876/call-logs
returns 25 items

https://api.phone.com/v4/accounts/234876/call-logs?limit=500
returns 500 items (index 0-499)

https://api.phone.com/v4/accounts/234876/call-logs?limit=500&offset=500
returns 500 items (index 500-999)

https://api.phone.com/v4/accounts/234876/call-logs?limit=500&offset=1000
returns 500 items (index 1000-1499)

  
Markdown is allowed