Hamidre13
Hamidre13

Reputation: 49

How to use the pagination in twilio api?

I can get the first page by client.call.page(args), but this will give me the object and object.nextPageUri. What should I do with this uri? I cannot find any method to go to next page in the documentation.

Upvotes: 0

Views: 493

Answers (1)

Hamidre13
Hamidre13

Reputation: 49

After loging the actual api I found getPage in the calls object.So here is how I get the next/prev pages:

callLog = await client.calls.getPage('https://api.twilio.com' + args.input.url)

Upvotes: 1

Related Questions