Codebase API wrapper for NodeJS
JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
.gitignore
README.md
package.json

README.md

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