Hi, the API comes back with the number of totalPages (say 10 pages), how can I loop the API call through all these pages (1,2,3...10) to get all data? Is there a tutorial I can refer? thanks, Song
Solved
Is there a tutorial on how to page through the API call
Best answer by ebygomm
If you make a request that tells you there are 10 pages to request, then you can clone the feature 10 times and then use the clone number to format a second request to get each of the 10 pages in turn. No need for looping. I would only use looping if there was no way of knowing how many requests were needed to be made in advance.
Reply
Rich Text Editor, editor1
Editor toolbars
Press ALT 0 for help
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.