New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
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

latest
npmnpm
Version
1.0.3
Version published
Weekly downloads
4
-33.33%
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

hubspot

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