Action 54: Query Game Result
Function Description
- Query the player game results
- Query without mType and historyId : Report main page will be displayed.
- To query a single game record, both mType and historyId must be specified
- If only one of the two parameters is specified, the request will be rejected.
- If both mType and historyId are specified: the detailed game result of the given historyId will be displayed, but note the following:
- For detailed game result from JDB, GTF, INJOY game provider, the result will be available 1 minute after player finished the game round.
- For detailed game result from game providers not in the previous list, the result be available 6 minutes after player finished the game round.
- Game result URL valid for 30 seconds.
- About socket timeout setting, it is recommended to set more than 40 seconds for testing environment and 20 seconds for production environment.
Query Time Range
| Game Provider | Time Range (within) |
|---|---|
| JDB | 30 days |
| SPRIBE | 30 days |
| GTF | 30 days |
| FC | 60 days |
| AMB | 7 days |
| SWG | 90 days |
| YB | 30 days |
| HRG | 40 days |
| ONLYPLAY | 180 days |
| INJOY | 30 days |
| CREEDROOMZ | 30 days |
| MANCALA | 60 days |
| ZESTPLAY | 30 days |
| SMARTSOFT | 1 days |
| FUNKY GAMES | 30 days |
| SWGS | 90 days |
| AVIATRIX | 90 days |
| CP | 30 days |
Parameter
| Parameter | Format | Mandatory | Description |
|---|---|---|---|
| action | Integer | Y | 54 |
| ts | Long | Y | Current system time |
| parent | String(50) | Y | Agent ID |
| uid | String(50) | Y | PlayerID |
| lang | String | N | Language Given any language that is not in the list above will be treated as English by default. See Language Code |
| historyId | String(200) | N | Game History ID “historyId” is needed when searching the single game detail. See Explanation of historyId |
| showUid | Integer | N | Whether show player id 0: not show id 1: show id (default) |
| mType | Integer | N | Machine Type “mType” is needed when searching the single game detail. |
Example
{
"action":54,
"ts":1447452951820,
"parent":"testag",
"uid":"testpl01",
"mType": 8001,
"historyId":"1234567890"
}Return Results
| Parameter | Format | Description |
|---|---|---|
| status | String(4) | Success: 0000 Error: See Error Codes in Appendix |
| data | JSON Array | The returned data will be listed in the following table. |
| err_text | String(255) | Error message |
Data Object
| Parameter | Format | Description |
|---|---|---|
| path | String | Game result URL |
Operation Sample
// Http Request
http://{API_Address}/apiRequest.do?dc=jb1&x=y1wayxScczy6ABfElfaVwb5CdfHxBN_JGtxyBSvpohLQakP8M2QSetJNojJBzvnrVChhq8YWWgBTdGeXFTH4vSNQQ66epf4NqYeQ-6bJ15pvHctQjQevulv7GHqOifuju_gY0H54FfVdQc9D5tKh1AZ-9KDh9dwcGSszZxU7JOOoHdYITlCO5LhvGmHxPBwZ
// Http Response (success)
{
"status":"0000",
"data": [
{
"path":"https://xxx.xxx.xxx/...."
}
]
}
// Http Response (error)
{
"status":"9005",
"err_text":"Assertion(SAML) didn't pass the timestamp validation."
}