Enter Game
Merchants (operators) call this interface to get the player's game entry link. This API interface is provided by the game platform for merchants to call.
Note: The game URL can only be used once when entered in the browser address bar. In the game, it can be used multiple times until disconnection.
Request URL
POST {API_URL_ROOT}/game/enter
Request Parameters
Header Content
| Parameter Name | Required | Type | Description |
|---|---|---|---|
| sign | Yes | string | Signature, calculated using Signature Algorithm |
| timestamp | Yes | int | UTC timestamp in seconds, seconds elapsed from January 1, 1970 to now, e.g.: 1741837297 |
| Accept-Language | Yes | string | Accepted language code, refer to Language List, e.g.: zh,en, to provide corresponding language error information when errors occur |
| Content-Type | Yes | string | "application/json; charset=utf-8" |
BODY Content
| Parameter Name | Required | Type | Description |
|---|---|---|---|
| tenantId | Yes | int | Merchant ID, unique integer assigned by the platform |
| userId | Yes | string | Merchant's player ID, ID that can distinguish each player |
| gameId | Yes | int | Game ID, game ID provided by the game platform |
| currency | No | string | Currency code, e.g.: USD, see Currency List |
| language | No | string | Language, e.g.: zh,en, see Language lList |
Response Parameters
The content in data is the game URL
Example
{
"isSuccess": true,
"code": 0,
"data": "http://xxx?t=1&g=1&k=67d2b6c02a6e1faf1df52455&l=zh"
}