Home

Awesome

Hubot Cisco Spark Adapter

Description

This is a Cisco Spark adapter for hubot that uses Cisco Spark webhooks.

Installation

Example Installation


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 gives you when creating a bot account