1.0.4 • Published 9 years ago

tempoiq v1.0.4

Weekly downloads
22
License
-
Repository
-
Last release
9 years ago

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 tempoiq

You can also check out this repository and install locally:

git clone https://github.com/TempoIQ/tempoiq-node-js.git
npm install ./tempoiq-node-js

Quickstart

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 test

If you'd like to run the test suite against an actual live backend, edit test/integration-credentials.json, and run:

npm run test-integration