npm install buddha_buddha_ is a node interface into zendesk.

npm install buddha
js
var buddha = require('../lib/buddha.js');buddha.setCredentials('helpdesk.zendesk.com', 'agentemail', 'password');
buddha.getTickets('12345678', 1, function(error, data) {
console.log(data);
});
`Methods
$3
Set authentication details for subsequent calls.
All communication uses https.
For the zendesk example this would be:
`jsbuddha.setCredentials('helpdesk.zendesk.com', 'agentemail', 'password');
`$3
Remove the current credentials meaning all subsequent calls will fail.
`jsbuddha.resetCredentials();
`$3
Used to perform actions on behalf of another user.
`jsbuddha.setOnBehalfOf('joe.enduser@theendusers.com');
`$3
Get a list of users.
`jsbuddha.getUsers(function(e, d) {
...
});
`$3
Get a page of tickets for a view:
`jsbuddha.getTickets(1234567, 1, function(e, d) {
...
});
`$3
Get a count of all tickets in a view:
`jsbuddha.getTicketCount(1234567, function(e, d) {
...
});
``