Nikunj B. Balar
Nikunj B. Balar

Reputation: 298

How can we get call log with specific date duration by paging using Twilio API?

I wanted to get a call log with a specific time duration but I am not getting from & to the parameter in URL. I am always getting latest records.

https://api.twilio.com/2010-04-01/Accounts/{AccountSID}/Calls.json

can someone help me to pass From & To date, to get a specific time duration call log?

Reference URL: https://www.twilio.com/docs/usage/twilios-response#response-formats-list-paging-information

Upvotes: 0

Views: 274

Answers (1)

Alan
Alan

Reputation: 10771

Try something like this:

https://api.twilio.com/2010-04-01/Accounts/{AccountSID}/Calls.json?StartTime%3E=2020-05-08T00%3A00%3A00Z&Status=completed&PageSize=100

Upvotes: 1

Related Questions