Synopsis
The purpose of this NPM is to provide a light weight API layer for rapid prototyping of Cisco Spark bots.
Motivation
This projects abstracts and reduces the communication with Cisco Spark services into consuming simple JS API that we, developers, understand better. Ultimately what a developer wants to focus is in the business logic, which is the fun part.
Code Example
var port = processenvPORT || 80;var sparklite = ;var botdomain = 'MY_BOT_DOMAIN.net'; // i.e “dolores.cisco.net”var sparkBot = My_Spark_Token port botdomain; sparkBot; //before version 2.0.0sparkBot //after version 2.0.0 sparkBotsparkBotEmitter
Tests
The tests are implemented with mocha, to execute them run the following command:
npm test