tempoiq

TempoIQ HTTP NodeJS Client

Usage no npm install needed!

<script type="module">
  import tempoiq from 'https://cdn.skypack.dev/tempoiq';
</script>

README

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