About the Token Generation Instructions
Token Generation
1、Information Association
The following information is required:
- appId: The enterprise domain (required)
- authKey: The enterprise key (required)
- thirdRoomid: The instant room number (required)
- userId: The user ID (required)
- ts: The current timestamp (required)
- expireTs: The room expiration time (in seconds) (required)
For information on obtaining the company domain and key, please check the company details in the enterprise management backend
2、AES encryption
tokenString = "appId=" + appId + "&thirdRoomId=" + thirdRoomid + "&userId=" + userId + "&ts=" + ts + "&expireTs=" + expireTs;AES encryption using the AESUtil class interface provided by the SDK. The sample code is as follows.
Method Example:
1 2 3 4 5 6 7 8 9 10 11 |
|
SDK Usage
- TKRoomSDK supports joining the room using both the joinRoom method and the joinRoomEx method Pass the enterprise domain appId in the init method, and then call joinRoom or joinRoomEx to enter the room