Action 52: Query In-Game Player
Function Description
Query is the player is inside the game playing, will response relevant information if player is in the game.
Parameter
Parameter | Format | Mandatory | Description |
---|---|---|---|
action | Integer | Y | 52 |
ts | Long | Y | Current system time |
parent | String(50) | Y | Agent ID |
uid | String(50) | Y | PlayerID |
Example
{
"action": 52,
"ts": 1447452951820,
"parent": "testag",
"uid":" testpl01"
}
Return Results
Parameter | Format | Description |
---|---|---|
status | String(4) | Success: 0000 Error: See Error Codes in Appendix |
data | JSON Object | The returned data will be listed in the following table. |
err_text | String(255) | Error message |
Data Object
Parameter | Format | Description |
---|---|---|
gType | Integer | Game types See Game Provider |
mType | Integer | Machine Types |
loginFrom | String(20) | Player login from websites or mobile devices |
ipAddr | String(50) | Player login IP |
loginTime | String(19) | Login game time (dd-MM-yyyy HH:mm:ss) |
balance | Number | Balance |
Operation Sample
// Http Request
http://{API_Address}/apiRequest.do?dc=jb&x=udbFVt_xv0tsAmLDpz5Z3Ct4-p0gedUPdQO-UWsfd6PHz9Ky-wM3mIC9El4kwl_SlX3lpraVaCLnp-K0WsgKmpYTV9XpYncHzbtvn591qfaAwpGyOvsS4v1Yj7OvpRw_iU4554RuSsvHpI9jaj4XUgTK5yzbWKEddANjAAbxF0s=
// Http Response (success)
{
"status": "0000",
"data": {
"gType": 0,
"mType": 8011,
"loginFrom": "WEB",
"ipAddr": "10.20.100.13",
"loginTime": "06-11-2017 16:49:18",
"balance": 1000
}
}
// Http Response (error)
{
"status": "7505",
"err_text": "User is not playing"
}