Node.js Zoho helper library for integrating Zoho Creator, CRM, Invoice and Support.
Installation
$ npm install zoho
Features
- Zoho Creator
- Zoho CRM
- Zoho Invoice
- Zoho Support
API
Zoho
Initialize zoho
var Zoho = ;
Zoho#CRM(object)
Initialize CRM
with an object authtoken
var crm = authtoken: 'bad18eba1ff45jk7858b8ae88a77fa30';
getRecords(<string> type, <function> callback)
:
crm;
Zoho#Invoice(object)
Initialize Invoice
with an object authtoken
var invoice = authtoken: 'bad18eba1ff45jk7858b8ae88a77fa30';
getRecords(<string> type, <function> callback)
:
invoice;
Zoho#Support(object)
Initialize Support
with an object authtoken
var support = authtoken: 'bad18eba1ff45jk7858b8ae88a77fa30';
getRecords(<string> type, <function> callback)
:
support;
Zoho#Creator(object)
Initialize Creator
with an object authtoken
var creator = authtoken: 'bad18eba1ff45jk7858b8ae88a77fa30';
setCookie(<string> cookie)
Set a cookie for "unofficial" API calls that require direct HTTP schemes.
creator;
viewRecordsInView(<string> applicationLinkName, <string> viewLinkName, <function> callback)
:
creator;
addRecords(<string> applicationLinkName, <string> formLinkName, <object> params, <function> callback)
Add records.
See https://www.zoho.com/creator/help/api/rest-api/rest-api-add-records.html
editRecords(<string> applicationLinkName, <string> formLinkName, <object> params, <function> callback)
Edit records.
See https://www.zoho.com/creator/help/api/rest-api/rest-api-edit-records.html
deleteRecords(<string> applicationLinkName, <string> formLinkName, <object> params, <function> callback)
Delete records.
See https://www.zoho.com/creator/help/api/rest-api/rest-api-delete-records.html
viewRecordsInView(<string> applicationLinkName, <string> formLinkName, <object> params, <function> callback)
Get records in view.
See https://www.zoho.com/creator/help/api/rest-api/rest-api-view-records-in-view.html
listFormFields(<string> applicationLinkName, <string> formLinkName, <object> params, <function> callback)
List form fields.
See https://www.zoho.com/creator/help/api/rest-api/rest-api-list-form-fields.html
downloadImage(<string> endpoint, <object> params, <function> callback)
Progmatically downloads a single image from Zoho Creator. Zoho doesn't officially provide support for downloading images or assets. However, this function will interact directly with the download endpoint. This requires a valid cookie to be set prior to requests.
creator; creator;
Reference
Contributing
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code.
In order to colaborate to this project, create a .testrc file with the contents below to run unit tests:
{
"crm": {
"authtoken": "..."
},
"invoice": {
"authtoken": "..."
},
"support": {
"authtoken": "..."
}
}
License
MIT