0.0.11 • Published 9 years ago
cherestjs v0.0.11
Cherestjs for Node.js
This module enables REST calls to the popular IT Service Management Software's REST API.
Installation
- Install Node.js
- Install module with
npm:
npm install cherestjsUsage
- Create
main.jsfile with the following code:
var cherestjs = require('cherestjs');
var cw = cherestjs('<host.fqdn.org>', '<api key>', '<username>', '<password>');
cw.getBusinessObject('<ticket id number>', function (err, object) {
console.log(object);
});- Run following command.
node main.js