added pagination to tags

This commit is contained in:
Artem Bondarenko 2020-11-02 22:14:38 +02:00 committed by David Garcia
parent 6d9a7c42fd
commit 75627515f4
2 changed files with 1 additions and 4 deletions

View file

@ -42,7 +42,7 @@ final class IndexResponse implements ApiResponse, PagingProvider
$model->items = $items;
// Fix http urls that is coming from server
$data['paging'] = array_map(function(string $url) {
$data['paging'] = array_map(function (string $url) {
return str_replace('http://', 'https://', $url);
}, $data['paging']);

View file

@ -14,9 +14,6 @@ namespace Mailgun\Tests\Api;
use GuzzleHttp\Psr7\Response;
use Mailgun\Api\Tag;
use Mailgun\Hydrator\ModelHydrator;
use Mailgun\Model\PaginationResponse;
use Mailgun\Model\Stats\TotalResponse;
use Mailgun\Model\Stats\TotalResponseItem;
use Mailgun\Model\Tag\IndexResponse;
/**