Closed aisnoek closed 1 year ago
The response for /lists/<address>/members/pages supports pagination, the class however did not.
/lists/<address>/members/pages
By added the use of the Pagination trait it's now possible to use pagination.
Pagination
Usage example:
$mailgun = Mailgun::create($apiKey, $endpoint); $mailingListMembers = $mailgun->mailingList()->member(); $response = $mailingListMembers->index($address, 1000); while ($response && count($response->getItems()) > 0) { $result = [...$result, ...$response->getItems()]; $response = $mailingListMembers->nextPage($response); }
Additionally the readme references composer test, composer.json however no longer contained that script. Restored it accordingly.
composer test
@Nyholm @DavidGarciaCat Any e.t.a. of an updated version with this fix please?
@mroeling I'm not a maintainer of this project, so I have no clue, unfortunately.
The response for
/lists/<address>/members/pages
supports pagination, the class however did not.By added the use of the
Pagination
trait it's now possible to use pagination.Usage example:
Additionally the readme references
composer test
, composer.json however no longer contained that script. Restored it accordingly.