node-zoho
v0.0.39
Published
Simple Zoho integrations for Node.js
Downloads
582
Readme
Zoho CRM API REST wrapper for node.js
Supports:
Currently a WIP, but feel free to ask how you can help.
CRM Modules Support:
Example of use
var Zoho = require('node-zoho');
var zoho = new Zoho({authToken:'API-TOKEN'});
var records = [
{
"Lead Source" : "Site Registration",
"First Name" : "Test",
"Last Name" : "Testerson",
"Email" : "[email protected]",
}
];
zoho.execute('crm', 'Leads', 'insertRecords', records, callback);
// to pass optional parameters
zoho.execute('crm', 'Leads', 'insertRecords', records, {wfTrigger: true}, callback);
var callback = function (err, result) {
if (err !== null) {
console.log(err);
} else if (result.isError()) {
console.log(result.message);
} else {
console.log(result.data);
}
}
Contribute
All the code is coffescript, but we deploy compiled js to npm. If you want to help, checkout the git repo and submit a PR.
Release instructions
- Wait for TravisCI confirmation that latest merge passes tests.
- Run
grunt release
. This bumps the package.json version, creates npm-shrinkwrap.json, tags this version and pushes it. npm publish
will compile the CoffeeScript and push the latest version to npmjs.org