node-codebase

Codebase API wrapper

node-codebase (API wrapper for Node.js)

A NodeJS wrapper for the CodeBaseHQ API.

npm install node-codebase
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/');
  • Write documentation
  • Finish "tickets.attachments.upload" method