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

@laboratoria/hubspot

Package Overview
Dependencies
Maintainers
3
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@laboratoria/hubspot

Unofficial Hubspot Node.js client

  • 1.0.3
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
20
increased by900%
Maintainers
3
Weekly downloads
 
Created
Source

Unofficial Hubspot Node.js client

Node.js CI

:warning: This tool is still in draft stage and is likely to change without notice.

Installation

npm i --save @laboratoria/hubspot

Usage

import { createClient as createHubSpotClient } from '@laboratoria/hubspot';

const hubspot = createHubSpotClient('<YOUR-HUBSPOT-PRIVATE-APP-TOKEN>');
const resultsStream = hubspot.deals.search({
  limit: 10,
  sorts: [{
    propertyName: 'hs_lastmodifieddate',
    direction: 'DESCENDING',
  }],
  properties: ['dealname', 'industria'],
  filterGroups: [{
    filters: [{
      value: '1546080',
      propertyName: 'pipeline',
      operator: 'EQ',
    }],
  }],
});

resultsStream.on('error', (err) => {
  // ...
});

resultsStream.on('data', (results) => {
  // ...
});

resultsStream.on('end', () => {
  // ...
});
hubspot.deals.getAll()
  .on('error', (error) => {
    console.error(error);
  })
  .on('data', (deals) => {
    console.log(deals);
  })
  .on('end', () => {
    console.log('ended!');
  });

Keywords

FAQs

Package last updated on 03 Apr 2024

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