Optional
requestFactory: TokensApiRequestFactoryOptional
responseProcessor: TokensApiResponseProcessorOptional
grantType: stringOptional
code: stringOptional
redirectUri: stringOptional
clientId: stringOptional
clientSecret: stringOptional
refreshToken: stringOptional
_options: PromiseConfigurationOptionsUse a previously obtained refresh token to generate a new access token. Access tokens are short lived. You can check the expires_in
parameter when generating an access token to determine its lifetime (in seconds). If you need offline access to HubSpot data, store the refresh token you get when initiating your OAuth integration and use it to generate a new access token once the initial one expires. Note: HubSpot access tokens will fluctuate in size as the information that's encoded in them changes over time. It's recommended to allow for tokens to be up to 300 characters to account for any potential changes.
Refresh an access token
Optional
grantType: stringOptional
code: stringOptional
redirectUri: stringOptional
clientId: stringOptional
clientSecret: stringOptional
refreshToken: stringOptional
_options: PromiseConfigurationOptions
Use a previously obtained refresh token to generate a new access token. Access tokens are short lived. You can check the
expires_in
parameter when generating an access token to determine its lifetime (in seconds). If you need offline access to HubSpot data, store the refresh token you get when initiating your OAuth integration and use it to generate a new access token once the initial one expires. Note: HubSpot access tokens will fluctuate in size as the information that's encoded in them changes over time. It's recommended to allow for tokens to be up to 300 characters to account for any potential changes. Refresh an access token