mirror of
https://github.com/retailcrm/mailgun-php.git
synced 2024-11-22 04:26:02 +03:00
18 lines
449 B
Markdown
18 lines
449 B
Markdown
|
# Pagination
|
||
|
|
||
|
Some API endpoints do support pagination.
|
||
|
|
||
|
```php
|
||
|
|
||
|
/** @var Mailgun\Model\Tag\IndexReponse $response */
|
||
|
$reponse = $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);
|
||
|
```
|