Heroku API client for node.js
CoffeeScript JavaScript
Latest commit 3ff7f35 May 18, 2014 @mattinsler oops
Permalink
Failed to load latest commit information.
dist updated to new heroku api May 16, 2014
examples oops May 16, 2014
lib updated to new heroku api May 16, 2014
.gitignore initial commit Jan 21, 2013
Gruntfile.coffee updated to new heroku api May 16, 2014
LICENSE-MIT initial commit Jan 21, 2013
README.md oops May 18, 2014
grunt.js initial commit Jan 21, 2013
package.json changed package May 16, 2014

README.md

heroku.node

Heroku API client for node.js

Installation

npm install heroku.node

Usage

var Heroku = require('heroku.node');

var client = new Heroku({email: '...', api_key: '...'});
// Do something with client

client.apps.list(function(err, apps) {
  console.log(apps);
});

// You can also use any method as a promise
client.apps.list().then(function(apps) {
  console.log(apps);
});

Constructors

new Heroku({email: '...', api_key: '...'})

Methods

Apps API

client.apps.list(callback)

client.app('app-name').get(callback)

client.app('app-name').maintenance_mode_on(callback)

client.app('app-name').maintenance_mode_off(callback)

client.app('app-name').destroy(callback)

Dynos API

client.app('app-name').dynos.list(callback)

client.app('app-name').dynos.restart(callback)

client.app('app-name').dynos.stop_type('process-type', callback)

client.app('app-name').dynos.scale('process-type', quantity, callback)

client.app('app-name').dyno('dyno-id').get(callback)

client.app('app-name').dyno('dyno-id').restart(callback)

client.app('app-name').dyno('dyno-id').stop(callback)

License

Copyright (c) 2013 Matt Insler
Licensed under the MIT license.