Skip to content

plan3/heroku-platform-api

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Java wrapper of Heroku Platform API

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 100.0%