mailgun-php/doc/pagination.md

18 lines
450 B
Markdown
Raw Permalink Normal View History

# Pagination
Some API endpoints do support pagination.
```php
/** @var Mailgun\Model\Tag\IndexReponse $response */
$response = $mailgun->tags()->index('example.com');
// Parse through the first response
// ...
$nextResponse = $mailgun->tags()->nextPage($response);
$previousResponse = $mailgun->tags()->previousPage($response);
$firstResponse = $mailgun->tags()->firstPage($response);
$lastResponse = $mailgun->tags()->lastPage($response);
```