autopilothq-node
v0.0.1
Published
A NodeJS API client for AutopilotHQ
Downloads
5
Readme
autopilothq-node
A node client for the AutopilotHQ API
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: '[email protected]'});
autopilot.contact().update({ email: '[email protected]'});
Get Contact
autopilot.contact('[email protected]').get(); // also takes autopilot contact id
Delete Contact
autopilot.contact('[email protected]').delete(); // also takes autopilot contact id