Constructors

Methods

  • 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

    Parameters

    • OptionalgrantType: string
    • Optionalcode: string
    • OptionalredirectUri: string
    • OptionalclientId: string
    • OptionalclientSecret: string
    • OptionalrefreshToken: string
    • Optional_options: PromiseConfigurationOptions

    Returns Promise<TokenResponseIF>

  • 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

    Parameters

    • OptionalgrantType: string
    • Optionalcode: string
    • OptionalredirectUri: string
    • OptionalclientId: string
    • OptionalclientSecret: string
    • OptionalrefreshToken: string
    • Optional_options: PromiseConfigurationOptions

    Returns Promise<HttpInfo<TokenResponseIF>>