Closed tm1000 closed 4 years ago
Can you check the module api name in Zoho CRM settings just to be sure the key you are using is correct?
Il giorno gio 23 apr 2020 alle 19:33 Andrew Nagy notifications@github.com ha scritto:
Trying something simple like
$zohoCrm = new \Webleit\ZohoCrmApi\ZohoCrm($client); print_r($zohoCrm->custommodule1->getList());
Fails with
PHP Fatal error: Uncaught Webleit\ZohoCrmApi\Exception\NonExistingModule: the module name given seems to be invalid in /usr/src/zoho-crm/vendor/webleit/zohocrmapi/src/Client.php:230 Stack trace:
0 /usr/src/zoho-crm/vendor/webleit/zohocrmapi/src/Client.php(160): Webleit\ZohoCrmApi\Client->call()
1 /usr/src/zoho-crm/vendor/webleit/zohocrmapi/src/Modules/Module.php(48): Webleit\ZohoCrmApi\Client->getList()
2 /usr/src/zoho-crm/test.php(24): Webleit\ZohoCrmApi\Modules\Module->getList()
3 {main}
thrown in /usr/src/zoho-crm/vendor/webleit/zohocrmapi/src/Client.php on line 230
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Weble/ZohoCrmApi/issues/39, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAINRU4KSGHLXK2M23T763TROB3WFANCNFSM4MPILFUQ .
-- Daniele Rosario CTO
Weble.it http://weble.it/ Via Enrico Fermi 265 36100 Vicenza +39 0444 130094 <+390444130094> +39 328 3017134 <+393283017134>
The API name in zoho is Locations. When I try it with Locations
or locations
the result is that it returns a null so I can't execute getList()
at all. I can only execute getList()
when I use custommodule1
Ok. Il check it tomorrow. 👌🏻
Il giorno gio 23 apr 2020 alle 19:40 Andrew Nagy notifications@github.com ha scritto:
The API name in zoho is Locations. When I try it with Locations or locations the result is that it returns a null so I can't execute getList() at all. I can only execute getList() when I use custommodule1
— You are receiving this because you commented.
Reply to this email directly, view it on GitHub https://github.com/Weble/ZohoCrmApi/issues/39#issuecomment-618541872, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAINRU7G2ZGM43KORNI7Z7DROB4SVANCNFSM4MPILFUQ .
-- Daniele Rosario CTO
Weble.it http://weble.it/ Via Enrico Fermi 265 36100 Vicenza +39 0444 130094 <+390444130094> +39 328 3017134 <+393283017134>
Hey @tm1000 i've released 3.3.0 with a fix for this. I was indexing the api modules available by their module name instead of the api name, which caused this issue.
Know you should be able to call it with its api name
$zoho->locations->getList();
Trying something simple like
Fails with