Skip to content

TempoIQ/tempoiq-node-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

TempoIQ Node Bindings

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •