Skip to content

ish-cd/api-client-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ish CD API Client (JavaScript)

A JavaScript API client for Ish - Continuous Delivery. Client-side and server-side compatible.

Travis build status Code Climate Test Coverage Dependency Status devDependency Status

Installation

npm install @ish-cd/api-client --save

Usage

// Instantiate the API client using an API token from an environment variable.
var clientIsh = require('@ish-cd/api-client'),
    client = new clientIsh(process.env.ISH_CD_API_TOKEN);

// Queue a run of the "backup-prod" job on the "my-corp" project.
var runQueued = client.projects('my-corp').jobs('backup-prod').runs().create();

// All actions return promises--you can react to them like this.
runQueued.then(function onceQueued(run) {
  console.log(run);
});

About

JavaScript API client for Ish CD.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published