Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/marchfederico/hubot-sparkwebhook
Cisco Spark adapter for Hubot
https://github.com/marchfederico/hubot-sparkwebhook
Last synced: about 2 months ago
JSON representation
Cisco Spark adapter for Hubot
- Host: GitHub
- URL: https://github.com/marchfederico/hubot-sparkwebhook
- Owner: marchfederico
- License: mit
- Created: 2016-07-26T23:30:27.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-01-16T20:03:49.000Z (over 7 years ago)
- Last Synced: 2024-07-04T07:04:39.964Z (3 months ago)
- Language: CoffeeScript
- Size: 5.86 KB
- Stars: 4
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-webex - hubot-sparkwebhook - A Hubot adapter (by marchfederico). (Bot frameworks)
README
# Hubot Cisco Spark Adapter
## Description
This is a [Cisco Spark](http://www.ciscospark.com) adapter for hubot that uses Cisco Spark
webhooks.## Installation
* Follow the [Getting Started With Hubot](https://hubot.github.com/docs/) guide to get a local installation of Hubot
* Run the command `yo hubot` and when asked for an adapter, use "sparkwebhook"
* Create an outgoing "all events" webhook that points to your hubot instance ex. (http://myhubot_url:8080/hubot/ciscospark/incoming)
* Set the environment variable CISCOSPARK_ACCESS_TOKEN to your bot's access token.## Example Installation
```sh
npm install -g yo generator-hubot
yo hubot --adapter sparkwebhook
curl -X POST -H "Authorization: Bearer YmQ5Mjk2YjUtM2FlNy00ZGU02Y5mZGEtY2I1OTQ5YzcyOTg4MzYTTTQ3OTktYjMw" -H "Content-Type: application/json" -d '{
"name": "hubot",
"targetUrl": "http://myhubot:8080/hubot/ciscospark/incoming",
"resource": "all",
"event": "all"
}' "https://api.ciscospark.com/v1/webhooks"export CISCOSPARK_ACCESS_TOKEN=YmQ5Mjk2YjUtM2FlNy00ZGU02Y5mZGEtY2I1OTQ5YzcyOTg4MzYTTTQ3OTktYjMw
bin/hubot -a sparkwebhook
```## Environment variables
This adapter uses the following environment variables:
**CISCOSPARK_ACCESS_TOKEN** (required)
The token that [Spark for Developers Portal](https://developer.ciscospark.com/apps.html) gives you when creating a bot account