# Dialog Node

A node.js client for the [Dialog](https://dialoganalytics.com) API.

[![Dependency Status](https://gemnasium.com/badges/github.com/dialoganalytics/dialog-node.svg)](https://gemnasium.com/github.com/dialoganalytics/dialog-node)


## Documentation

See the [API docs](https://docs.dialoganalytics.com).

## Installation

Install using [npm](https://www.npmjs.com/).

```bash
npm install dialog-api@1.x --save
```

## Usage

Create a framework specific API client:

```js
// Require the right version for your framework
var Dialog = require('dialog-api/lib/botkit');
var Dialog = require('dialog-api/lib/messenger');
var Dialog = require('dialog-api/lib/kik');

var track = new Dialog('DIALOG_API_TOKEN', 'botId')
```

Or keep it real:

```js
var Dialog = require('dialog-api');

var payload = {}; // See https://docs.dialoganalytics.com/reference/track/

Dialog.track('DIALOG_API_TOKEN', 'botId', payload);
```

# Dialog Node

A node.js client for the [Dialog](https://dialoganalytics.com) API.

[![Dependency Status](https://gemnasium.com/badges/github.com/dialoganalytics/dialog-node.svg)](https://gemnasium.com/github.com/dialoganalytics/dialog-node)


## Documentation

See the [API docs](https://docs.dialoganalytics.com).

## Installation

Install using [npm](https://www.npmjs.com/).

```bash
npm install dialog-api@1.x --save
```

## Usage

Create a framework specific API client:

```js
// Require the right version for your framework
var Dialog = require('dialog-api/lib/botkit/messenger');
var Dialog = require('dialog-api/lib/botkit/twilioipm');
var Dialog = require('dialog-api/lib/messenger');
var Dialog = require('dialog-api/lib/kik');

var track = new Dialog('DIALOG_API_TOKEN', 'botId')
```

Or keep it real:

```js
var Dialog = require('dialog-api');

var payload = {}; // See https://docs.dialoganalytics.com/reference/track/

Dialog.track('DIALOG_API_TOKEN', 'botId', payload);
```

Update require paths in readme
Update require paths in readme
