codeship-node
v0.2.0
Published
Codeship API for node
Downloads
4
Readme
codeship-node
Codeship API for node - https://codeship.com/documentation/integrations/api/
Usage
You'll need to set up with your API key first (find it here):
var Codeship = require('codeship-node');
var codeship = new Codeship({apiKey: 'abc123'});
Each method is nested under it's resource name and requires a callback. Example of retrieving all projects:
codeship.projects.list(function(err, projects) {
if (err) {
// do stuff
}
console.log('Projects!', projects);
}):
Available methods
- builds
restart(build_id, cb)
- projects
get(project_id, cb)
list(cb)