Display Hubspot companies

Display Hubspot companies

This example shows you how to create a smart collection to list the companies of your Hubspot account.

Requirements

  • An admin backend running on forest-express-sequelize

  • superagent npm package

  • a Hubspot account

How it works

Directory: /forest

This directory contains the hubspot-companies.js file where the collection is declared.

Directory: /routes

This directory contains the hubspot-companies.js file where the serializer for the collection and logic to get records is defined.

Companies information are obtained by making a get all companies call to the Hubspot API.

The Hubspot API key is defined in the .env file and requested through the expression process.env.HUBSPOT_API.

Last updated

Was this helpful?