This package has been deprecated

Author message:

No longer maintained, please use @hubspot/api-client instead

hubspot-api
TypeScript icon, indicating that this package has built-in type declarations

2.17.3 • Public • Published

Build Status (Release)

Hubspot Client API

IMPORTANT!

⚠️ This package is now deprecated and no longer maintained, please use the @hubspot/api-client instead.

A client wrapper for the HubSpot API at https://developers.hubspot.com/docs/overview.

Installation

npm install --save hubspot-api

Docs

Full documentation available at https://hubspotwebteam.github.io/hs-node-api/

Example

const HubSpotClient = require('hubspot-api');
const hs = new HubSpotClient({ hapikey });
// or const hs = new HubSpotClient({ accessToken });
// or const hs = new HubSpotClient(); # for public methods, eg. Forms, HubDB

async function getContact(id){
  const contact = await hs.contacts.getById(827398123);
  return contact
}

// Or using traditional thenable Promises.
hs.contacts.getById(827398123).then(contact => {
  console.log(contact);
});

Entities available

  • Blogs
  • Blog posts
  • Blog authors
  • Blog topics
  • Contacts
  • Contacts Properties (partial implementation)
  • Companies
  • Calendar
  • Deals (partial implementation)
  • Domains
  • Email Events (partial implementation)
  • Engagements (partial implementation)
  • Forms (partial implementation)
  • HubDB (partial implementation)
  • Layouts
  • Page Publishing
  • Social (partial implementation)
  • Workflows

Please check out the full documentation available at https://hubspotwebteam.github.io/hs-node-api/

CORS

At the moment of writing the HubSpot APIs do not support CORS / AJAX requests due to security reasons, so you must use this library only on a Node.js server.

Authors and Contributors

Currently maintained by the lovely folks on HubSpot's Web Team, but we need your help. Please feel free to submit pull requests to add new functionality.

How to Contribute

Contributions are welcome. Please refer to the contributing guidelines

Readme

Keywords

Package Sidebar

Install

npm i hubspot-api

Weekly Downloads

553

Version

2.17.3

License

ISC

Unpacked Size

10.5 kB

Total Files

8

Last publish

Collaborators

  • mhewitt
  • rymccarty
  • epayret
  • dmooney
  • leahshearer
  • jcalleja-hubspot
  • lopchannorie
  • kelvinmr
  • rraj_hubspot
  • pwilver
  • dding
  • tstelmach
  • hs_cfrisoli
  • priedle
  • amichelini
  • lbergin
  • nhodgkiss447
  • dharmeshs
  • annagallo-hs
  • lhampson
  • cutlah
  • gwilliamshubspot
  • kelin599
  • cprince
  • aulfich-hs
  • samson.yuwono
  • vickytran
  • denishubspot
  • markelly-hs
  • sgoldenson
  • bpuseyhs
  • mndhlovu
  • snigam
  • andresllinasr
  • ronaldtorresn
  • hayala
  • conor_heffernan
  • sdiaz88
  • kimccarthy
  • sduque
  • stevehealy
  • henryqdineen
  • gsugrue_npm
  • bjacobel
  • ruthfarrell
  • adiazcometa
  • sasharma
  • pstafford
  • bcarolan
  • iogrizovic
  • dgroechel_hs
  • cayre
  • siva_h
  • mahad2
  • ahiremath
  • cwilliford_hubspot
  • cwunder_hubspot
  • conormalone
  • nmansurov
  • cfritz
  • hzahra
  • mbegyn
  • mlamacchia
  • yjgcharriz
  • mariana.sanchez.s
  • damartinez
  • ralo_alo
  • awilks
  • leocifnpm
  • mvalenciahubspot
  • hsneking
  • jgilhs
  • ericsalvi
  • appstructio
  • dshamis
  • eshaw
  • tswyter
  • kebrahim
  • smcelhinney_hubs
  • mdstaff