Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Oauth2Manager

Hierarchy

  • Oauth2Manager

Index

Constructors

  • Parameters

    • id: string

      Bot's id

    • secret: string

      Bot's secret

    • version: APIVersions

      API Version

    Returns Oauth2Manager

Methods

  • Get an access token

    Parameters

    • code: string

      The code you got from the redirect URI

    • redirectURI: string

      The redirect URI you used when you created the application.

    Returns Promise<AccesTokenResponse>

  • Refresh access token

    Parameters

    • refreshToken: string

      The refresh token you got from the initial authorization.

    Returns Promise<AccesTokenResponse>

Properties

version: APIVersions

API Version

#cliend_id: string

Bot's id

#client_secret: string

Bot's secret

Generated using TypeDoc