From a3ac61ac2deb72b00bea2b2ba9fbd1fdb520aab8 Mon Sep 17 00:00:00 2001 From: Jonathan Martz Date: Fri, 30 Jun 2023 19:30:21 +0200 Subject: [PATCH] add perPage from params to queryParams --- src/Collection.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Collection.php b/src/Collection.php index 5722b32..d931373 100644 --- a/src/Collection.php +++ b/src/Collection.php @@ -40,6 +40,7 @@ class Collection */ public function getList(int $start = 1, int $end = 50, array $queryParams = []): array { + $queryParams['perPage'] = $end; $getParams = !empty($queryParams) ? http_build_query($queryParams) : ""; $response = $this->doRequest($this->url . "/api/collections/" . $this->collection . "/records?" . $getParams, 'GET');