Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

hubot-mashery

hubot-scripts9MIT0.0.2

A hubot script that interacts with the Mashery API.

mashery, hubot, hubot-scripts

readme

Hubot Mashery npm version Build Status

This script is designed to be used with a Hubot to interact with the Mashery API.

Adding to Your Hubot

See full instructions here.

  1. npm install hubot-mashery --save (updates your package.json file)
  2. Open the external-scripts.json file in the root directory (you may need to create this file) and add an entry to the array (e.g. [ 'hubot-mashery' ]).

Commands

  • hubot mashery services - Show list of services
  • hubot mashery endpoints <serviceId> - Show list of endpoints for a given service

Suggested Setup

  • The form fields presented there are, in order, the following Hubot environment variables:
    • MASHERY_UN
    • MASHERY_PW
    • MASHERY_API_KEY
    • MASHERY_SECRET
    • MASHERY_AREA_UUID
  • Register the five values as environment variables when starting your bot (as usual with Hubot scripts) using export or heroku config:set or whatever applies to your Hubot hosting environment.