A node client for the AutopilotHQ API
For detailed API information reference AutopilotHQ API Documentation
Require Intercom:
var autopilot = require('autopilot-node');
Create a Autopilot Instance:
var autopilot = new Autopilot('apikey', [reqOpts]);
autopilot.contact().add({ email: 'test@example.com'});
autopilot.contact().update({ email: 'test@example.com'});
autopilot.contact('test@example.com').get(); // also takes autopilot contact id
autopilot.contact('test@example.com').delete(); // also takes autopilot contact id