HubSpot
Connect to your users’ Hubspot CRM to create, access, and update records in their Hubspot account.
Last updated
// Use KollaConnect client to get your user's hubspot access token
kolla.authenticate(consumerToken)
// Get the consumer's auth token to hubspot
var clientHubspotToken = kolla.getToken("hubspot", customerId)
const hubspot = require('@hubspot/api-client')
const hubspotClient = new hubspot.Client({ accessToken: clientHubspotToken })
hubspotClient.crm.contacts.basicApi
.getPage(limit, after, properties, propertiesWithHistory, associations, archived)
.then((results) => {
console.log(results)
})
.catch((err) => {
console.error(err)
})