npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@datafire/heroku

v5.0.0

Published

DataFire integration for Heroku

Downloads

39

Readme

@datafire/heroku

Client library for Heroku

Installation and Usage

npm install --save @datafire/heroku
let heroku = require('@datafire/heroku').create({
  access_token: "",
  refresh_token: "",
  client_id: "",
  client_secret: "",
  redirect_uri: ""
});

.then(data => {
  console.log(data);
});

Description

Manage your Heroku apps, configs, collaborators & resources

Actions

oauthCallback

Exchange the code passed to your redirect URI for an access_token

heroku.oauthCallback({
  "code": ""
}, context)

Input

  • input object
    • code required string

Output

  • output object
    • access_token string
    • refresh_token string
    • token_type string
    • scope string
    • expiration string

oauthRefresh

Exchange a refresh_token for an access_token

heroku.oauthRefresh(null, context)

Input

This action has no parameters

Output

  • output object
    • access_token string
    • refresh_token string
    • token_type string
    • scope string
    • expiration string

addons.get

List all available addons.

heroku.addons.get({
  "Accept": ""
}, context)

Input

  • input object
    • Accept required string (values: application/json, application/xml): Content type.

Output

Output schema unknown

apps.app.addons.get

List addons installed on an app.

heroku.apps.app.addons.get({
  "Accept": "",
  "app": ""
}, context)

Input

  • input object
    • Accept required string (values: application/json, application/xml): Content type.
    • app required string: The app name.

Output

Output schema unknown

apps.app.addons.addon.post

Install an addon to an app.

heroku.apps.app.addons.addon.post({
  "Accept": "",
  "app": "",
  "addon": ""
}, context)

Input

  • input object
    • Accept required string (values: application/json, application/xml): Content type.
    • app required string: The app name.
    • addon required string: the addon name.

Output

Output schema unknown

apps.app.addons.addon.put

Upgrade an addon to an app.

heroku.apps.app.addons.addon.put({
  "Accept": "",
  "app": "",
  "addon": ""
}, context)

Input

  • input object
    • Accept required string (values: application/json, application/xml): Content type.
    • app required string: The app name.
    • addon required string: the addon name.

Output

Output schema unknown

apps.app.addons.addon.delete

Uninstall an addon from an app.

heroku.apps.app.addons.addon.delete({
  "Accept": "",
  "app": "",
  "addon": ""
}, context)

Input

  • input object
    • Accept required string (values: application/json, application/xml): Content type.
    • app required string: The app name.
    • addon required string: the addon name.

Output

Output schema unknown

apps.get

List apps.

heroku.apps.get({
  "Accept": ""
}, context)

Input

  • input object
    • Accept required string (values: application/json, application/xml): Content type.

Output

Output schema unknown

apps.post

Create an app.

heroku.apps.post({
  "Accept": ""
}, context)

Input

  • input object
    • Accept required string (values: application/json, application/xml): Content type.

Output

Output schema unknown

apps.name.get

Get info for an app.

heroku.apps.name.get({
  "Accept": "",
  "name": ""
}, context)

Input

  • input object
    • Accept required string (values: application/json, application/xml): Content type.
    • name required string: The app name.

Output

Output schema unknown

apps.name.delete

Destroy an app.

heroku.apps.name.delete({
  "Accept": "",
  "name": ""
}, context)

Input

  • input object
    • Accept required string (values: application/json, application/xml): Content type.
    • name required string: The app name.

Output

Output schema unknown

apps.app.collaborators.get

List collaborators for an app.

heroku.apps.app.collaborators.get({
  "Accept": "",
  "app": ""
}, context)

Input

  • input object
    • Accept required string (values: application/json, application/xml): Content type.
    • app required string: The app name.

Output

Output schema unknown

apps.app.collaborators.email.delete

Remove a collaborator from an app.

heroku.apps.app.collaborators.email.delete({
  "Accept": "",
  "app": "",
  "email": ""
}, context)

Input

  • input object
    • Accept required string (values: application/json, application/xml): Content type.
    • app required string: The app name.
    • email required string: The email of the user to remove as a collaborator.

Output

Output schema unknown

apps.app.config_vars.get

List config vars for an app.

heroku.apps.app.config_vars.get({
  "Accept": "",
  "app": ""
}, context)

Input

  • input object
    • Accept required string (values: application/json, application/xml): Content type.
    • app required string: The app name.

Output

Output schema unknown

apps.app.config_vars.put

Add config vars to an app.

heroku.apps.app.config_vars.put({
  "Accept": "",
  "app": ""
}, context)

Input

  • input object
    • Accept required string (values: application/json, application/xml): Content type.
    • app required string: The app name.

Output

Output schema unknown

apps.app.config_vars.key.delete

Remove a config var from an app.

heroku.apps.app.config_vars.key.delete({
  "Accept": "",
  "app": "",
  "key": ""
}, context)

Input

  • input object
    • Accept required string (values: application/json, application/xml): Content type.
    • app required string: The app name.
    • key required string: The config var to remove.

Output

Output schema unknown

apps.app.domains.get

List domains for an app.

heroku.apps.app.domains.get({
  "Accept": "",
  "app": ""
}, context)

Input

  • input object
    • Accept required string (values: application/json, application/xml): Content type.
    • app required string: The app name.

Output

Output schema unknown

apps.app.domains.domain_name.delete

Remove a domain from an app.

heroku.apps.app.domains.domain_name.delete({
  "Accept": "",
  "app": "",
  "domain_name": ""
}, context)

Input

  • input object
    • Accept required string (values: application/json, application/xml): Content type.
    • app required string: The app name.
    • domain_name required string: The domain to remove.

Output

Output schema unknown

user.keys.get

List SSH keys.

heroku.user.keys.get({
  "Accept": ""
}, context)

Input

  • input object
    • Accept required string (values: application/json, application/xml): Content type.

Output

Output schema unknown

user.keys.post

Associate an SSH key with this account.

heroku.user.keys.post({
  "Accept": ""
}, context)

Input

  • input object
    • Accept required string (values: application/json, application/xml): Content type.

Output

Output schema unknown

user.keys.key.delete

Remove an SSH key from this account.

heroku.user.keys.key.delete({
  "Accept": "",
  "key": ""
}, context)

Input

  • input object
    • Accept required string (values: application/json, application/xml): Content type.
    • key required string: The username@hostname description field of the key.

Output

Output schema unknown

apps.app.logs.get

Get logs for an app.

heroku.apps.app.logs.get({
  "Accept": "",
  "app": "",
  "logplex": ""
}, context)

Input

  • input object
    • Accept required string (values: application/json, application/xml): Content type.
    • app required string: The app name.
    • logplex required string: Use logplex to stream logs (always true).
    • num integer: The number of lines to display.
    • ps string: Only display logs from a given process.
    • source string: Only display logs from a given source.
    • tail string: 1: continually stream logs - : display only num logs

Output

Output schema unknown

apps.app.ps.get

List processes for an app.

heroku.apps.app.ps.get({
  "Accept": "",
  "app": ""
}, context)

Input

  • input object
    • Accept required string (values: application/json, application/xml): Content type.
    • app required string: The app name.

Output

Output schema unknown

apps.app.ps.post

Run a one-off process.

heroku.apps.app.ps.post({
  "Accept": "",
  "command": "",
  "app": ""
}, context)

Input

  • input object
    • Accept required string (values: application/json, application/xml): Content type.
    • command required string: The command to run.
    • attach string: true: use rendezvous to access stdin/stdout - : stream process output to the application log
    • app required string: The app name.

Output

Output schema unknown

apps.app.ps.restart.post

Restart processes of an app. Specify either ps or type to restart only the specified processes. Leave both blank to restart the entire app.

heroku.apps.app.ps.restart.post({
  "Accept": "",
  "app": ""
}, context)

Input

  • input object
    • Accept required string (values: application/json, application/xml): Content type.
    • app required string: The app name.
    • ps string: The name of a process to restart.
    • type string: The type of process to restart.

Output

Output schema unknown

apps.app.ps.stop.post

Stop processes of an app. Specify either ps or type to stop the specified processes.

heroku.apps.app.ps.stop.post({
  "Accept": "",
  "app": ""
}, context)

Input

  • input object
    • Accept required string (values: application/json, application/xml): Content type.
    • app required string: The app name.

Output

Output schema unknown

apps.app.ps.scale.post

Scale processes of an app.

heroku.apps.app.ps.scale.post({
  "Accept": "",
  "app": "",
  "type": "",
  "qty": ""
}, context)

Input

  • input object
    • Accept required string (values: application/json, application/xml): Content type.
    • app required string: The app name.
    • type required string: The type of process to scale.
    • qty required string: The desired number of processes of this type.

Output

Output schema unknown

apps.app.releases.get

List releases for an app.

heroku.apps.app.releases.get({
  "Accept": "",
  "app": ""
}, context)

Input

  • input object
    • Accept required string (values: application/json, application/xml): Content type.
    • app required string: The app name.

Output

Output schema unknown

apps.app.releases.post

Rollback to a release.

heroku.apps.app.releases.post({
  "Accept": "",
  "rollback": "",
  "app": ""
}, context)

Input

  • input object
    • Accept required string (values: application/json, application/xml): Content type.
    • rollback required string: The release to which to roll back.
    • app required string: The app name.

Output

Output schema unknown

apps.app.releases.release.get

Get info for a release.

heroku.apps.app.releases.release.get({
  "Accept": "",
  "app": "",
  "release": ""
}, context)

Input

  • input object
    • Accept required string (values: application/json, application/xml): Content type.
    • app required string: The app name.
    • release required string: The release name.

Output

Output schema unknown

apps.app.stack.get

List available stacks for an app.

heroku.apps.app.stack.get({
  "Accept": "",
  "app": ""
}, context)

Input

  • input object
    • Accept required string (values: application/json, application/xml): Content type.
    • app required string: The app name.

Output

Output schema unknown

apps.app.stack.put

Migrate an app to a new stack.

heroku.apps.app.stack.put({
  "Accept": "",
  "app": ""
}, context)

Input

  • input object
    • Accept required string (values: application/json, application/xml): Content type.
    • app required string: The app name.

Output

Output schema unknown

Definitions

This integration has no definitions