PHP SDK : 2 warnings and no response
Hello,
I'm trying to connect to your API, I followed all your instructions from your docs (Register your application, Installation, Configuration, Token Persistence etc.. )
I decided to use File Persistence and tried to execute the "Get Current User's sample", by passing all of my credentials to the $configuration array.
Here is my $configuration array :
$configuration=array(
"client_id" => "XXXXXXXXXXXXXXXXXX",
"client_secret" => "XXXXXXXXXXXXXXX",
"redirect_uri" => "XXXXXXXXXXXXXXX",
"currentUserEmail" => "XXXXXXXXXXX",
"token_persistence_path" => __DIR__ . "/TokenStorage",
"access_type" => "offline",
"apiVersion"=>"v2"
);
Here are the warnings :
- Warning: array_key_exists() expects parameter 2 to be array, null given in /Library/WebServer/Documents/vendor/zohocrm/php-sdk/src/crm/api/response/BulkAPIResponse.php on line 184
- Warning: Invalid argument supplied for foreach() in /Library/WebServer/Documents/vendor/zohocrm/php-sdk/src/crm/api/handler/OrganizationAPIHandler.php on line 661
I've tried to execute more simple codes but I always get the same warnings and no response. Can you please help me fix this? Do you need my code?
I don't think the token has expired since I don't get any errors regarding Token expiration .
Thanks,