I can’t get the Contacts data in the sandbox.
With these settings, I get records from the live account
private $configuration = [
'client_id' => '1000.AAA',
'client_secret' => 'BBB',
'redirect_uri' => 'CCC',
'currentUserEmail' => 'DDD',
'token_persistence_path' => './',
];
$contacts = ZCRMModule::getInstance("Contacts")->getRecords();
Result: array of Contacts.
With these settings, I do not get records from the sandbox
private $configuration = [
'client_id' => '1000.AAA',
'client_secret' => 'BBB',
'redirect_uri' => 'CCC',
'currentUserEmail' => 'DDD',
'token_persistence_path' => './',
//sandbox params
'sandbox' => true,
'domainSuffix' => 'com',
'iamURL' => 'https://accounts.zoho.com/',
'apiBaseUrl' => 'https://sandbox.zohoapis.com',
];
$contacts = ZCRMModule::getInstance("Contacts")->getRecords();Result: empty array, but demo data in the sandbox in the Contacts section exists.
What could be the problem?