node-codebase
v1.0.0
Published
Codebase API wrapper
Downloads
4
Readme
node-codebase (API wrapper for Node.js)
A NodeJS wrapper for the CodeBaseHQ API.
Install from NPM
npm install node-codebase
Example usage
var http = require('http'),
Codebase = require('codebase');
var cb = new Codebase(
'api url',
'account/username:apikey'
);
http.createServer(function (req, res) {
if (req.url !== '/') {
res.end();
return;
}
cb.activity(function (err, data) {
if (err) {
res.end('There was an error!' + data);
}
res.end(JSON.stringify(data));
});
}).listen(8080);
console.log('Server running at http://localhost:8080/');
TODO
- Write documentation
- Finish "tickets.attachments.upload" method