add perPage from params to queryParams

This commit is contained in:
Jonathan Martz
2023-06-30 19:30:21 +02:00
parent 47a861be48
commit a3ac61ac2d

View File

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