Java wrapper of Heroku Platform API
Java
Switch branches/tags
Nothing to show
Clone or download
Pull request Compare This branch is even with shunjikonishi:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
dist
src
.gitignore
LICENSE.txt
README.md
pom.xml

README.md

Heroku Platform API

Overview

Java wrapper of Heroku Platform API.

https://devcenter.heroku.com/articles/platform-api-reference

Implemented features

  • RateLimitRating
  • Account
  • AccountFeature
  • Addon
  • AddonService
  • App
  • AppFeature
  • AppTransfer
  • Collaborator
  • Config
  • Domain
  • Dyno
  • Formation
  • Key
  • LogDrain
  • LogSession
  • OAuthAuthorization
  • OAuthClient
  • OAuthToken
  • Plan
  • Region
  • Release
  • SSLEndpoint
  • Stack

Not implemented features

None(2013-12-06)

Usage

JavaDoc

//Get the url of Heroku authentication page.
String oauthUrl = PlatformApi.getOAuthUrl("<YOUR_CLIENT_ID>", Scope.Global);

//... Authenticate and get code.

PlatformApi api = PlatformApi.fromOAuth("<YOUR_CLIENT_SECRET>", code);

//Get application list
List<App> appList = api.getAppList();
App app = appList.get(0);

//heroku ps:scale web=5
Formation api.updateFormation(app.getName(), "web", 5, 1);

//heroku ps:restart
api.restart(app.getName());

License

MIT