npm.io
0.0.1 • Published 7 years ago

autopilothq-node

Licence
MIT
Version
0.0.1
Deps
3
Size
1.9 MB
Vulns
1
Weekly
0
Stars
1

autopilothq-node

A node client for the AutopilotHQ API

Build Status

For detailed API information reference AutopilotHQ API Documentation

Usage

Require Intercom:

var autopilot = require('autopilot-node');

Create a Autopilot Instance:

Using API Key

var autopilot = new Autopilot('apikey', [reqOpts]);

Contacts

Add/Update Contact
autopilot.contact().add({ email: 'test@example.com'});
autopilot.contact().update({ email: 'test@example.com'});
Get Contact
autopilot.contact('test@example.com').get(); // also takes autopilot contact id
Delete Contact
autopilot.contact('test@example.com').delete(); // also takes autopilot contact id