heroku-api-plugin

access the Heroku API directly

'heroku-api-plugin' has been renamed '@heroku-cli/plugin-api'
Last updated a year ago by dickeyxxx .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install heroku-api-plugin 
SYNC missed versions from official npm registry.

API Plugin for Heroku Toolbelt Circle CI

npm version codecov CircleCI Build status

How to install this plugin

$ heroku plugins:install heroku-api-plugin

Usage

$ heroku api [--version VERSION] METHOD PATH

The api command is a convenient but low-level way to send requests to the Heroku API. It sends an HTTP request to the Heroku API using the given method on the given path. For methods PUT, PATCH, and POST, it uses stdin unmodified as the request body. It prints the response unmodified on stdout.

Method name input will be upcased, so both 'heroku api GET /apps' and 'heroku api get /apps' are valid commands.

Examples:

  $ heroku api GET /apps/myapp
  { created_at: "2011-11-11T04:17:13-00:00",
    id: "12345678-9abc-def0-1234-456789012345",
    name: "myapp",
    …
  }

  $ heroku api -v 3.variant /apps
  # Something different

  $ export HEROKU_HEADERS
  $ HEROKU_HEADERS='
  Content-Type: application/x-www-form-urlencoded
  Accept: application/json
  '
  $ printf 'type=web&qty=2' | heroku api POST /apps/myapp/ps/scale
  2

Current Tags

  • 2.1.7                                ...           latest (a year ago)

19 Versions

  • 2.1.7 [deprecated]           ...           a year ago
  • 2.1.6 [deprecated]           ...           a year ago
  • 2.1.5 [deprecated]           ...           a year ago
  • 2.1.4 [deprecated]           ...           2 years ago
  • 2.1.3 [deprecated]           ...           2 years ago
  • 2.1.2 [deprecated]           ...           2 years ago
  • 2.1.1 [deprecated]           ...           2 years ago
  • 2.1.0 [deprecated]           ...           2 years ago
  • 2.0.1 [deprecated]           ...           2 years ago
  • 2.0.0 [deprecated]           ...           2 years ago
  • 1.2.3 [deprecated]           ...           2 years ago
  • 1.2.2 [deprecated]           ...           2 years ago
  • 1.1.2 [deprecated]           ...           2 years ago
  • 1.1.1 [deprecated]           ...           2 years ago
  • 1.1.0 [deprecated]           ...           2 years ago
  • 1.0.2 [deprecated]           ...           2 years ago
  • 1.0.1 [deprecated]           ...           3 years ago
  • 1.0.0 [deprecated]           ...           3 years ago
  • 0.2.0 [deprecated]           ...           4 years ago
Downloads
Today 1
This Week 1
This Month 20
Last Day 0
Last Week 0
Last Month 39
Dependencies (11)
Dev Dependencies (14)
Dependents (0)
None

Copyright 2014 - 2018 © taobao.org |