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: '[email protected]'});
autopilot.contact().update({ email: '[email protected]'});
autopilot.contact('[email protected]').get(); // also takes autopilot contact id
autopilot.contact('[email protected]').delete(); // also takes autopilot contact id