ZOHO PHP SDK: Invalid oauth scope
Hi there, I got an issue when trying to use PHP SDK (for version 2.0 or 2.1, I tried with both).
I'm trying to get the list of Contacts using the Records request. Using
ZohoCRM.modules.ALL scope I could get the token and connect to the API but when trying the methods
getRecords("Contacts"), I get an error saying:
invalid oauth scope to access this URL: https://
www.zohoapis.com/crm/v2.1/settings/fields?module=ContactsDigging a bit into the code, it seems some methods in the
RecordOperations.php class call a
Utility::getFields() method that trigger that error. When I comment out the call to this Utility function, it does work but I don't want to start hacking locally the SDK. So I then tried to add the scope
ZohoCRM.settings.ALL, but without success.
Do you have any idea if it's a Scope related error (in that case, which one should be used ?) or if the SDK need to be patched ?
Thank for your time !