Skip to main content

Method to Get Token

Here’s how to get an access token.

Prerequisites

You have obtained appKey and appId, which can be found in the created API Keys. Steps
  1. Generate a signature using appKey and appId.
  2. Use the signature as the input parameter for the init method of the h5 sdk.

Signature Generation

The signature uses the JWT mechanism. Users can refer to the following to complete the signature.

Parameter Description

The following parameters need to be prepared for signature generation

Demo Code

The sample code for the signature is as follows, Java version example
** Note: This signature (Token) is the H5 SDK’s sign

Integration Development

With the AppID, secret key, and Token obtained in the above steps, you can learn in detail from the SDK and API overview how to integrate DUIX into your service on various platforms.