OAuth2API

export declare class OAuth2API
export declare class OAuth2API

No summary provided.

constructor(rest)
Constructs a new instance of the OAuth2API class
NameTypeOptionalDescription
restRESTNoNone
generateAuthorizationURL(options):string
NameTypeOptionalDescription
optionsRESTOAuth2AuthorizationQueryNoThe options for creating the authorization URL
getCurrentAuthorizationInformation():Promise<RESTGetAPIOAuth2CurrentAuthorizationResult>
getCurrentBotApplicationInformation():Promise<RESTGetAPIOAuth2CurrentApplicationResult>
Fetches the bearer token for the current application
Remarks
This is primarily used for testing purposes
NameTypeOptionalDescription
optionsRESTPostOAuth2ClientCredentialsURLEncodedDataNoThe options for the client credentials grant request
NameTypeOptionalDescription
optionsRESTPostOAuth2RefreshTokenURLEncodedDataNoThe options for the refresh token request
NameTypeOptionalDescription
optionsRESTPostOAuth2AccessTokenURLEncodedDataNoThe options for the token exchange request