1
0
mirror of synced 2024-11-23 22:06:09 +03:00
api-client-php/doc/usage/examples/complex_pagination/index.md

9 lines
487 B
Markdown
Raw Normal View History

2021-06-02 17:00:32 +03:00
Here are some complex examples of pagination handling. In this case, we're using a special component that handles the pagination for us.
As a result, we can just iterate over batches of the data using `foreach`.
More than that, this component automatically handles rate limit exceptions.
* [Fetching customers](example_customers_list.php)
* [Fetching customers history](example_customers_history.php)
* [Pagination component (`PaginatedRequestIterator`)](PaginatedRequestIterator.php)