mailgun-php/doc/pagination.md
Ángel Guzmán Maeso d320567572 Fix small typo in docs (#388)
Fix response variable typo
2017-08-29 21:38:22 +02:00

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);