codeship

0.1.1 • Public • Published

codeship-api

npm version Build Status

An better API wrapper for Codeship.

Codeship API Docs

Install

With npm do:

npm install codeship

How do I get a API key?

After sign up Codeship. You can get your API key on your account page.

Example usage

'use strict';
let Codeship = require('codeship');
let codeship = new Codeship('APIKEY');
 
codeship.listProjects((err, results) => {
  if (err) throw err;
  console.log(results);
});
 
codeship.getProject('111139', (err, result) => {
  if (err) throw err;
  console.log(result);
});
 
codeship.getProjectBuildData('111139', (err, result) => {
  if (err) throw err;
  console.log(result);
});
 

APIs

codeship.listProjects(cb)

Return an array include all projects on codeship.

codeship.getProject(projectId, cb)

Return a single project projectId is required.

codeship.getProjectBuildData(projectId, cb)

Return build data in a single project projectId is required.

License

MIT © Che-Wei Lin

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.1
    13
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.1
    13
  • 0.1.0
    1

Package Sidebar

Install

npm i codeship

Weekly Downloads

14

Version

0.1.1

License

MIT

Last publish

Collaborators

  • linton