mirror of
https://github.com/retailcrm/mailgun-php.git
synced 2024-11-24 21:46:02 +03:00
d320567572
Fix response variable typo
450 B
450 B
Pagination
Some API endpoints do support pagination.
/** @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);