Connecting to Hubspot via SQL
You can use SQL to connect to Hubspot in the Data Virtuality Studio or the Code Editor in the Web UI.
Pre-requisites
You need the endpoint, the client pair, RefreshToken for gaining access to the API. We recommend that you use only one authorization method.
How to Connect
Before you start retrieving data, you need to run the connector script for Hubspot in the Data Virtuality Studio or the Web UI and input your credentials in the following line:
SQL
|
You may optionally add a multi-tenancy table if you wish to access data from multiple accounts in the API.
Keep in mind that you have to mnually pass a label
parameter to the API procedures which will identify which credentials should be used in the request. If you are not using multi-tenancy, remove the multitenancy_tablename
parameter from the model properties, as the default value is not intended to be present in production environments.