The access token authentication flow passes the access token directly from the client to the HubSpot service for authentication. Unlike other grant types, authentication credentials, such as authorization codes, are not exchanged in return for the access code. Instead, the access token is obtained from sources external to the flow and specified using the Access Token option.

Note: Access tokens are temporary and must be replaced to maintain the session without interruption. The life of an access token is typically one hour.

To configure the driver to use an access token flow, set the Access Token (AccessToken) option to the value of the access token obtained from external sources.

The following examples show the connection information required to establish a session using the access token flow.

Connection string

DRIVER=DataDirect 8.0 HubSpot;
AccessToken=123=abCD/EfGh4Ijk+L;

odbc.ini file

[HubSpot]
Driver=ODBCHOME/lib/ivhubspot28.so
Description=DataDirect 8.0 HubSpot
...
AccessToken=123=abCD/EfGh4Ijk+L
...