The Sisense HubSpot connector is a standalone connector that allows you to import data from HubSpot’s API into the ElastiCube Manager. After you have downloaded and installed the connector, you can connect through a connection string you provide Sisense in the ElastiCube Manager. The connection string is used to authenticate users who connect to the HubSpot APIs. To obtain a connection string, you will need to create a HubSpot app.
Once you have connected to HubSpot, you can import a variety of tables from the HubSpot API.
This page describes how to install the HubSpot connector, how to connect to HubSpot with a connection string, and what tables you can import into the ElastiCube Manager:
- Installing the HubSpot Connector
- Connecting to the HubSpot REST API
- Adding HubSpot Tables to your ElastiCube
- HubSpot Tables
Sisense provides the HubSpot connector as a standalone connector that you can download and add to your list of default Sisense connectors.
To install the HubSpot connector:
- Download the HubSpot installation file.
- Open the installation file and click Install.
- After the installation process is complete, click Close.
The HubSpot connector is displayed in the ElastiCube Manager under Add Data > Web Services.
To access HubSpot’s REST API from the ElastiCube Manager, you must provide valid Oauth HubSpot credentials through a connection string. These credentials are provided by HubSpot when you create an application.
After you receive your credentials from HubSpot, you can create the connection string and provide Sisense with it to connect to your data.
Creating an App
Follow the steps below to obtain the OAuth client credentials, the OAuthClientId and OAuthClientSecret:
- Log into your HubSpot developer account.
- Click Create App.
- If you will only use the app to connect to your portal, select One Off.If other users will use the app to connect to their own portals, select For Everyone.
- Click the name of your app.
- Enter values to be displayed to users when you connect. These values include the app name, author name, and a description of the app.
Authenticating through HubSpot
After setting the following connection properties, you are ready to connect:
- OAuthClientId: Set this to the client Id in your app settings.
- OAuthClientSecret: Set this to the client secret in your app settings.
- CallbackURL: Set this to http://localhost.
- HubId: Set this to the Hub Id of the HubSpot account you are connecting to.
- InitiateOAuth: Set this to GETANDREFRESH. You can use InitiateOAuth to avoid repeating the OAuth exchange and manually setting the OAuthAccessToken connection property.
When you connect the driver opens the OAuth endpoint in your default browser. Log in and grant permissions to the application. The driver then completes the OAuth process:
- Extracts the access token from the callback URL and authenticates requests.
- Refreshes the access token when it expires.
- Saves OAuth values in OAuthSettingsLocation to be persisted across connections.
Sisense uses connection strings to connect to HubSpot and import data into the ElastiCube Manager. Each connection string contains a authentication parameters that the data source uses to verify your identity and what information you can export to Sisense. To learn more, see Connection String Parameters.
To add HubSpot data:
- In ElastiCube Manager, click Add Data and then, HubSpot. The Connect to HubSpot window is displayed.
- In Datasource Connection String, enter your connection string.
- Click Connect to Server. HubSpot is displayed in the Select Database list.
- Click OK. Sisense connects to HubSpot and displays a list of tables available for you to import.
- Select the relevant tables and click Add.
The tables are displayed in the ElastiCube Manager.
HubSpot’s RESTful APIs expose the following HubSpot tables that you can import into the ElastiCube Manager through the Sisense HubSpot connector:
|BlogAuthors||Retrieve the available blog authors in HubSpot.|
|BlogPosts||Retrieve the available blog posts in HubSpot.|
|Blogs||Retrieve the available blogs in HubSpot.|
|BlogTopics||Retrieve the available blog topics in HubSpot.|
|Comments||Retrieve the available comments from your blog in HubSpot.|
|CompanyProperties||Company properties are the standard and custom pieces of field data that appear in HubSpot.|
|CompanyPropertyGroups||Company property groups in HubSpot offer a way of organizing individual types of properties for companies. Each company property must belong to a property group.|
|ContactLists||Contact lists in HubSpot can be used to group together contacts with similar characteristics.|
|ContactProperties||Contact properties are the standard and custom pieces of field data that appear in HubSpot.|
|ContactPropertyGroups||Contact property groups in HubSpot offer a way of organizing individual types of properties for contacts. Each contact property must belong to a property group.|
|DealProperties||Deal properties are the standard and custom pieces of field data that appear in HubSpot.|
|DealPropertyGroups||Contact property groups in HubSpot offer a way of organizing individual types of properties for contacts. Each contact property must belong to a property group.|
|Domains||Retrieve the available domains in HubSpot.|
|EmailCampaigns||Email campaigns in HubSpot allow you to keep track of and update email marketing campaigns. This table allows you to create, update, and delete your email campaigns in HubSpot.|
|EmailCampaignEvents||The events associated with an email campaign or a recipient.|
|EmailSubscriptions||The subscription types a given email is subscribed to. An email must be specified to return results. Subscriptions may be removed by deleting them.|
|EmailSubscriptionTypes||A list of email subscription types for a HubSpot hub.|
|Files||Retrieves information about the available files in HubSpot.|
|Folders||Retrieves information about the available folders in HubSpot.|
|Owners||Retrieve the owners in HubSpot.|
|Pages||Retrieve the available pages in HubSpot.|
|SocialMediaChannels||List available social media channels in HubSpot.|
|SocialMediaMessages||Social media messages.|
|Templates||Retrieve the available templates in HubSpot.|
|UrlMappings||Retrieve the available url mappings in HubSpot.|
|220.127.116.11||March 16, 2017||Dates are handled as expected|
|18.104.22.168||January 16, 2017||General release|
Hey! Was this article helpful?
Questions? Ask the community.