Zoho CRM rest api wrapper for node.js
currently supports:
- authentication
- insertingRecord on all resources
Currently a WIP, but feel free to ask how you can help.
Method | Leads | Accounts | Contacts | Potentials | Events | Notes |
---|---|---|---|---|---|---|
insertRecords | ✓ | ✓ | ✓ | ✓ | ||
convertLead | ✓ | NA | NA | NA | NA | NA |
getRecordById | ✓ | ✓ | ✓ | ✓ | ||
getMyRecords | ||||||
getRecords | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
getCVRecords | ||||||
updateRecords | ✓ | ✓ | ✓ | |||
searchRecords | ✓ | ✓ | ✓ | |||
getSearchRecords | ✓ | ✓ | ✓ | |||
getSearchRecordsByPDC | ||||||
deleteRecords | ||||||
getRelatedRecords | ||||||
getFields | ✓ | ✓ | ✓ | ✓ | ✓ | |
updateRelatedRecords | ||||||
getUsers | ||||||
uploadFile | ||||||
downloadFile | ||||||
deleteFile | ||||||
uploadPhoto | ||||||
downloadPhoto | ||||||
deletePhoto |
More to come...
var Zoho = require('node-zoho');
zoho = new Zoho({authToken:'API-TOKEN'});
records = [
{
"Lead Source" : "Site Registration",
"First Name" : "Test",
"Last Name" : "Testerson",
"Email" : "[email protected]",
}
];
zoho.execute('crm', 'Leads', 'insertRecords', records, function (err, result) {
if (err !== null) {
console.log(err);
} else if (result.isError()) {
console.log(result.message);
} else {
console.log(result.data);
}
});
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.
- Wait for TravisCI confirmation that latest merge passes tests.
- Run
grunt bump
. This bumps the package.json version, tags this version and pushes it. npm publish
will compile the CoffeeScript and push the latest version to npmjs.org