1.0.4 • Published 11 years ago
tempoiq v1.0.4
TempoIQ Node.js Library
Installation
The TempoIQ Node.js library makes calls to the TempoIQ API. The module is available on npm as tempoiq:
npm install tempoiqYou can also check out this repository and install locally:
git clone https://github.com/TempoIQ/tempoiq-node-js.git
npm install ./tempoiq-node-jsQuickstart
var tempoiq = require('tempoiq');
var client = new tempoiq.Client("key", "secret", "myco.backend.tempoiq.com");
client.createDevice(new tempoiq.Device("devicekey1"), function(err, device) {
if (err) throw err;
console.log("Device created: "+device.key);
});Test Suite
To run the test suite against local stubs:
npm run testIf you'd like to run the test suite against an actual live backend,
edit test/integration-credentials.json, and run:
npm run test-integration