ahmader / node-zoho

Zoho API access for NodeJS
21 stars 15 forks source link

Adapt getRecordById to handle various object types; not just Events #22

Closed phillipleslie closed 7 years ago

phillipleslie commented 7 years ago

Original implementation of getRecordById would inspect the response body's JSON for an Events member; whereas in reality the available members will depend on which object type the caller is asking for. E.g., Contacts, Leads, Accounts.

phillipleslie commented 7 years ago

@ahmader would you consider merging this and my other fixes? I have more fixes coming in the future, if you are willing to merge my current ones.

ahmader commented 7 years ago

Hello @phillipleslie yes any help is very welcomed! I will merge your pull requests ASAP.

Sorry for the delay.