GithubHelp home page GithubHelp logo

node-hubspot's Introduction

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.update(id, data, cb)
client.contacts.create(data, cb)
client.contacts.createOrUpdateBatch(data, cb)
client.contacts.search(query, cb)
client.contacts.getRecent(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

node-hubspot's People

Contributors

brainflake avatar ghostrocket avatar itsfilipoficial avatar kr1sp1n avatar samlevan avatar tejasmanohar avatar timisbusy avatar twisterking avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.