Namespace: hs/oauth

hs/oauth

A collection of methods related to the OAuth API

Methods

hs/oauth.getTokenInfo (token)Promise static

Get the meta data for an access token. This can be used to get the email address of the HubSpot * user that the token was created for.

Name Type Description
token string

The access token that you want to get the information for.

Returns:
Type Description
Promise
Example
const hs = new HubspotClient(props);
hs.oauth.getTokenInfo(token).then(response => console.log(response));