# TempoIQ HTTP NodeJS Library

## Installation

The TempoIQ Node library is not yet listed in the central NPM database. You 
can install it into your project from a local directory:

```
npm install /path/to/tempoiq-node-js
```

## Quickstart

```nodejs
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:

```
mocha
```

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

```
INTEGRATION=true mocha
```

# TempoIQ Node.js Library

## Installation

The TempoIQ Node.js library makes calls to the [TempoIQ API](https://tempoiq.com/). The module is available on npm as [tempoiq](https://www.npmjs.com/package/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

```nodejs
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:

```
mocha
```

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

```
INTEGRATION=true mocha
```

Update readme to reference npm
Update readme to reference npm
