buddha
Simple interface with zendesk.
Last updated 4 years ago by roylines .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install buddha 
SYNC missed versions from official npm registry.

buddha

buddha is a node interface into zendesk.

Build Status

Installation

npm install buddha

Usage

var buddha = require('../lib/buddha.js');

buddha.setCredentials('helpdesk.zendesk.com', 'agentemail', 'password');

buddha.getTickets('12345678', 1, function(error, data) {
  console.log(data);
});

Methods

setCredentials

Set authentication details for subsequent calls. All communication uses https.

For the zendesk example this would be:


buddha.setCredentials('helpdesk.zendesk.com', 'agentemail', 'password');

resetCredentials

Remove the current credentials meaning all subsequent calls will fail.


buddha.resetCredentials();

setOnBehalfOf

Used to perform actions on behalf of another user.


buddha.setOnBehalfOf('joe.enduser@theendusers.com');

getUsers

Get a list of users.


buddha.getUsers(function(e, d) {
  ...
});

getTickets

Get a page of tickets for a view:


buddha.getTickets(1234567, 1, function(e, d) {
  ...
});

getTicketCount

Get a count of all tickets in a view:


buddha.getTicketCount(1234567, function(e, d) {
  ...
});

Current Tags

  • 1.0.1                                ...           latest (4 years ago)

4 Versions

  • 1.0.1                                ...           4 years ago
  • 1.0.0                                ...           8 years ago
  • 0.0.2                                ...           8 years ago
  • 0.0.1                                ...           8 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (1)
Dev Dependencies (4)
Dependents (2)

Copyright 2014 - 2017 © taobao.org |