rikas / zoho_hub

Zoho CRM API V2 Wrapper
MIT License
25 stars 30 forks source link

Calling Baserecord objects that are not modules #28

Open pkayokay opened 5 years ago

pkayokay commented 5 years ago

Is there an issue with calling a user scope as Baserecord objects since they are not part of Zoho modules? I can call users successfully with ZohoHub.connection.get('users'), but not with User.all. Also could not call via ZohoHub.connection.get('Users'), as I would with a capital letter for modules.

To test this, I tested the same with accounts and deals which are under modules. I was able to call them both with a connection and with Account.all, Deal.all.

pkayokay commented 5 years ago

Adding for reference https://www.zoho.com/crm/developer/docs/api/get-specific-user.html

Looks like it might be something with the different path compared to modules. users/:id, will look when I get a chance.