Transfer
JDB Platform API
Player Management
Action 52: Query In-Game Player

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

ParameterFormatMandatoryDescription
actionIntegerY52
tsLongYCurrent system time
parentString(50)YAgent ID
uidString(50)YPlayerID

Example

{
  "action": 52,
  "ts": 1447452951820,
  "parent": "testag",
  "uid":" testpl01"
}

Return Results

ParameterFormatDescription
statusString(4)Success: 0000

Error: See Error Codes in Appendix
dataJSON ObjectThe returned data will be listed in the following table.
err_textString(255)Error message

Data Object

ParameterFormatDescription
gTypeIntegerGame types
See Game Provider
mTypeIntegerMachine Types
loginFromString(20)Player login from websites or mobile devices
ipAddrString(50)Player login IP
loginTimeString(19)Login game time (dd-MM-yyyy HH:mm:ss)
balanceNumberBalance

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"
}