How to paginate results using the PHP SDK
Hi!
We have noticed, that the API does not deliver more than 200 contacts at a time. Now we need to get the results paginated so we circumvent this limitation (we don't want to switch to the Bulk API if possible). Basically we want to process chunks of contacts so we do not exceed the memory limit of our system.
Is it possible to get the paginated results with the PHP SKD? This is the relevant portion of our code:
$zcrmModuleIns = ZCRMModule::getInstance('Contacts');
$bulkAPIResponse = $zcrmModuleIns->getRecords();
$recordsArray = $bulkAPIResponse->getData();
$res = array_map(function ($record) {
return $record->getData();
}, $recordsArray);
Everything I found so far did not work :/
Thanks!