hapi-hubspot
v1.0.2
Published
Hapi Plugin to handle hubsport handshake and initial setup (via Node-Hubspot)
Downloads
6
Readme
hapi-hubspot
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