A convenience class for making HTTP requests to the Heroku API for a given user. An underlying {@link Connection} is createdfor each instance of HerokuAPI. To make HTTP requests to the Heroku API in multi-user or systems that have resource constraints (e.g. a pool of
Connection
objects are required),
Connection
should be used directly.
Example usage:
{@code HerokuAPI heroku = new HerokuAPI("apiKey"); App app = heroku.createApp(); heroku.scaleProcess(app.getName(), "web", 1)}
{@link RuntimeException} will be thrown for any request failures.