Hapi Plugin to handle hubsport handshake and initial setup (via Node-Hubspot)
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
test
.editorconfig
.eslintrc
.gitignore
LICENSE
README.md
circle.yml
package.json

README.md

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