Open papoms opened 11 months ago
I've been looking into an issue with the API but did not find any issues in the log (neither the SDK Log nor the Laravel log). I specifically was looking into authentication issues not being logged when retrieving records like so:
$manager = ZohoManager::make('Deals'); $record = $manager->getRecord($id);
To reproduce:
storage/app/zoho/oauth/tokens/zcrm_oauthtokens.txt
For me it boils down to this line
Suggested Fix use com\zoho\crm\api\modules\APIException; should be use com\zoho\crm\api\record\APIException;
use com\zoho\crm\api\modules\APIException;
use com\zoho\crm\api\record\APIException;
Or is there a specific reason to use modules i am missing?
Happy to provide a PR. Or do we need to catch both types of Exceptions here?
This is what i am trying out now: https://github.com/papoms/zoho-v3/pull/3/commits/5bc41c9a93520b7de801eda041a9c89a168ed68c
I've been looking into an issue with the API but did not find any issues in the log (neither the SDK Log nor the Laravel log). I specifically was looking into authentication issues not being logged when retrieving records like so:
To reproduce:
storage/app/zoho/oauth/tokens/zcrm_oauthtokens.txt
so the access_token is wrong and run the above code.For me it boils down to this line
Suggested Fix
use com\zoho\crm\api\modules\APIException;
should beuse com\zoho\crm\api\record\APIException;
Or is there a specific reason to use modules i am missing?