Developers

GetToken

Usage

Use this method to retrieve the access token sent to the Chat API for authentication, as well as its expiration time.

Mandatory parameters

This method has not mandatory parameters.

Optional parameters

This method has no optional parameters.

Response data format

{
  "accestoken": <string>,
  "expiration": <number>
}

Example

 const accessTokenData = chatbot.api.getToken();