tempoiq

1.0.4 • Public • Published

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

Package Sidebar

Install

npm i tempoiq

Weekly Downloads

4

Version

1.0.4

License

none

Last publish

Collaborators

  • tempoiq