hubot-mashery

A hubot script that interacts with the Mashery API.

Usage no npm install needed!

<script type="module">
  import hubotMashery from 'https://cdn.skypack.dev/hubot-mashery';
</script>

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.