This package provides a HubSpot CRM v3 connector. It exposes a simple lifecycle and typed domain methods for common objects.
bash -i <(curl https://connectors.514.ai/install.sh) hubspot v3 514-labs typescript
npm install && npm run build
package.json
to understand the new connector folder. LLM is great for this!npm install
from your project root to update your node_modules
with the new connectorimport { createHubSpotConnector } from "@workspace/connector-hubspot";
async function main() {
const hubspot = createHubSpotConnector();
hubspot.initialize({
auth: { type: "bearer", bearer: { token: process.env.HUBSPOT_TOKEN! } },
});
await hubspot.connect();
for await (const contact of hubspot.streamContacts({ pageSize: 100 })) {
console.log(contact.id);
}
}
main().catch((err) => {
console.error(err);
process.exit(1);
});
See docs/configuration.md
for all configuration options.