Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

hubspot

Package Overview
Dependencies
Maintainers
3
Versions
79
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hubspot

A node wrapper for the HubSpot API

  • 0.4.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
16K
decreased by-5.25%
Maintainers
3
Weekly downloads
 
Created
Source

node-hubspot

Build Status Dependencies Code Climate Test Coverage Issue Count

Node.js wrapper for the HubSpot API

Installing

npm install hubspot

Usage

var Client = require('hubspot');

var client = new Client();

/*
 * You can use either a key OR a token
 */
if (config.key) {
  client.useKey(config.key);
} else if (config.token) {
  client.useToken(config.token);
}

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

Available Methods

Companies

client.companies.getRecentlyCreated(opts, cb)
client.companies.getByDomain(domain, cb)
client.companies.create(data, cb)

Contacts

client.contacts.get(opts, cb)
client.contacts.getByEmail(email, cb)
client.contacts.getByEmailBatch(emails, cb)
client.contacts.getById(id, cb)
client.contacts.getByIdBatch(ids, cb)
client.contacts.update(id, data, cb)
client.contacts.create(data, cb)
client.contacts.createOrUpdateBatch(data, cb)
client.contacts.search(query, cb)
client.contacts.getRecent(cb)
client.contacts.createOrUpdate(email, data, cb)

Deals

client.deals.getRecentyModified(opts, cb)
client.deals.getRecentlyCreated(opts, cb)
client.deals.getById(id, cb)
client.deals.deleteById(id, cb)
client.deals.updateById(id, data, cb)
client.deals.create(data, cb)

client.deals.associate(id, objectType, associatedObjectId, cb)
client.deals.removeAssociation(id, objectType, associatedObjectId, cb)

Engagements

client.engagements.create(data, cb)

Pipelines

client.pipelines.get(opts, cb)

Lists

client.lists.get(opts, cb)
client.lists.getOne(id, cb)
client.lists.getContacts(id, opts, cb)
client.lists.getRecentContacts(id, opts, cb)
client.lists.addContacts(id, contactBody, cb)

Files

client.files.get(cb)
client.files.getOne(id, cb)

Email

client.subscriptions.get(opts, cb)

Email Events

client.campaigns.get(opts, cb)
client.campaigns.getOne(id, appId, cb)
client.campaigns.events(opts, cb)

Social Media

client.broadcasts.get(opts, cb)

License

MIT

Contributors

Brian Falk @brainflake

Tim Atkinson @timisbusy

Tejas Manohar @tejasmanohar

Krispin Schulz @kr1sp1n

Filipe Ferreira @iTsFILIPOficial

Keywords

FAQs

Package last updated on 20 Dec 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc