Error with $entityResponse in php sdk
Hello,
i'm trying to integrate zoho in a project.
I need to get the list of products saved in zoho crm but i get an error:
Notice: Undefined index: code
public function __construct($entityResponseJSON)
{
$this->responseJSON=$entityResponseJSON;
$this->status=$entityResponseJSON[APIConstants::STATUS];
$this->message=$entityResponseJSON[APIConstants::MESSAGE];
$this->code=$entityResponseJSON[APIConstants::CODE];
try {
$zcrmModuleIns = ZCRMModule::getInstance("Products");
$bulkAPIResponse = $zcrmModuleIns->getRecords();
$recordsArray = $bulkAPIResponse->getData(); // $recordsArray - array of ZCRMRecord instances
foreach ($recordsArray as $key => $value) {
dump($value->getData());
}
Thanks for your help.