Pagination¶
When a response returns many items or is paginated, the response contains an page iterator instead of all the items. This ensures fast response times and the ability to just retrieve a required subset of items.
Responses that do return paginated results contain an item iterator.
An example of such API is the list accounts:
1 |
|
Where the list accounts returns an iterator of accounts pages
This can later be used like any other python iterator in the following fashion
1 2 3 4 5 6 7 8 9 10 11 12 13 |
|
Where we list the account pages and for each page for each item we print it