Appearance
Login POST
This api is use for enter to the game.
Authorization
Transfer uses Basic Authentication with your agent credentials. (Authentication)
HTTP Request
POST {{ API_URL }}/logInContent Type
Type: application/json
Parameter Description
| Property | Type | Required | Description |
|---|---|---|---|
username | string | Required | Member username |
productId | string | Required | Product ID (Ref. Product List) (Example : SEXY) |
gameCode | string | Required | Game code of product (Example : BAC) |
isMobileLogin | boolean | Required | Mobile Mode (Example : true) |
language | string | Optional | Language Code default th Language List (Example : th) |
betLimit | BetLimits | Optional | Player's bet limits |
limit | number See more | Optional | Player common bet limit format |
callbackUrl | string | Optional | Exit url, url that you need to redirect if player quit the game from Game GUI. |
Response Description
| Property | Type | Required | Description |
|---|---|---|---|
reqId | string | Required | Unique reference for each request |
code | number | Required | Response status |
message | string | Required | Additional information on response status |
data | LoginData | Required | Login data |
Login Data
| Property | Type | Required | Description |
|---|---|---|---|
username | string | Required | Username |
url | string | Required | Game url |
Request Body
json
{
"username": "test00001",
"productId": "SEXY",
"gameCode": "MX-LIVE-001",
"isMobileLogin": false,
"callbackUrl": "https://demo.com"
}JSON response example:
json
{
"reqId": "7c4d1ed5-b036-4bcf-a534-9236970678c8",
"code": 0,
"message": "Success",
"data": {
"url": "https://ttt.onlinegames22.com/player/login/apiLogin0?userId=000166xgz&agentId=superapitest&tokenId=yMrZlUH4vLLItmM10dZARVAwAkRWqBIIpMxZXnUGXwswnKRM-Zw_X19NBuSEfmYq&isMobileLogin=false&isShowSymbol=true¤cySymbol=&isApp=false&gameCode=MX-LIVE-001&platform=SEXYBCRT&gameType=LIVE&isLaunchGame=true&language=&isNewGameHall=false",
"username": "test00001"
}
}