HubSpot
INFO
The HubSpot connector is a Scripted API connector. Please refer to the Scripted API documentation for more details.
The HubSpot connector allows data synchronization between HubSpot and RAC/M Identity. To do this, the connector uses the HubSpot Rest API. The API documentation is available at https://developers.hubspot.com/docs/api/overview.
Like all scripts used by the Scripted API connector, this connector can be modified to meet specific requirements. You can refer to other reference scripts to see how scripts can be modified.
Configuration
The following parameters are required for all Scripted API connectors:
| Configuration | Description |
|---|---|
| Script Path | Path to the Groovy script. Ex: /usr/local/racm-identity/ICF/reference-scripts/scripted-api-1.9.0.0/hubspot.groovy.See section Script Creation |
| API URL | URL of the API to connect to. |
| Custom Config 1 | The grant_type. |
| Custom Config 2 | The client_id. |
| Custom Secret 1 | The client_secret. |
| Preferred Authentication Method | userToken or password |
| Authentication URL | The URL used for authentication. |
Advanced Configuration
| Configuration | Description |
|---|---|
| Timeout | Timeout in milliseconds. |
| Thread Pool Size | The number of threads to be used for concurrent operations. Leave empty to use all available threads. |
| Time between retries | The waiting time before an HTTP request is retried. Leave empty to use 500ms. |
The API URL should be https://api.hubapi.com/settings/v3/users.
Authentication
The connector supports authentication using "Private App".
You need to create a private app following the instructions at https://developers.hubspot.com/docs/api/private-apps. The following scopes are required for the connector to function:
settings.users.readsettings.users.writesettings.users.teams.readsettings.users.teams.write
You will then need to retrieve your "Access Token" from the "Details" tab. This value will be used as the "Bearer Token".
When configuring the connector, you need to provide the following information:
| Configuration | Should contain |
|---|---|
| Bearer Token | Le "Access Token". |
| Preferred Authentication Method | Bearer |
