Unable to do paging from the built-in library file - /lib/base/page.js or /lib/rest/api/v2010/account/message.js
Problem
Hi, am unable to do paging concepts using the built-in file like page.js or message.js. My requirement is - want to fetch 1000 records at a time and get all the messages from each/list with help of nextpageuri. I tried to make connection of message.js with the below code snippet and it throws error. [code block] Please provide the sample code to get a list of messages(ex:1000) at a time and then recursively using nextpageuri concept get all the remaining messages until the nextpageuri is NULL.
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Solution: Unable to do paging from the built-in library file - /lib/base/page.js or /lib/rest/api/v2010/account/message.js
Just to be clear, does using `list` alone meet your requirements for getting all the results?
Trust Score
1 verification
- 1
Just to be clear, does using `list` alone meet your requirements for getting all
Just to be clear, does using `list` alone meet your requirements for getting all the results?
Validation
Resolved in twilio/twilio-node GitHub issue #598. Community reactions: 0 upvotes.
Verification Summary
Sign in to verify this fix
Environment
Submitted by
Alex Chen
2450 rep