1.0.2 • Published 7 years ago

hapi-hubspot v1.0.2

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

hapi-hubspot

CircleCI

Stories in Ready

Hapi Plugin to handle Hubspot handshake and initial setup via Node-Hubspot

Install

npm install --save hapi-hubspot

Usage

var options = {
    key: 'demo' //Note: you can also use a key, see node-hubspot docs for more info
};

var server = new Hapi.Server();

server.register({
    register: require('hapi-hubspot'),
    options: options
}, function (err) { });

var client = server.plugins['hapi-hubspot'].client;

Example

var client = server.plugins['hapi-hubspot'].client;

client.campaigns.get(function(err, res) {
  if (err) { throw err; }
  console.log(res);
});

Options

  • token
  • key