Action 62: Check Event Ranking
Function Description
- Query the ranking according to event date range.
- The maximum time range for each search is 14 days.
Parameter
Parameter | Format | Mandatory | Description |
---|---|---|---|
action | Integer | Y | 62 |
ts | Long | Y | Current system time |
parent | String(50) | Y | House/Manager/Master Agent/Agent ID |
startDate | String(10) | Y | Start date of the searching range. (dd - MM - yyyy) |
endDate | String(10) | Y | End date of the searching range. (dd - MM - yyyy) |
Example
{
"action": 62,
"ts": 1447452951820,
"parent": "testhse",
"startDate": "29-08-2018",
"endDate": "29-08-2018"
}
Return Results
Parameter | Format | Description |
---|---|---|
status | String(4) | Success: 0000 Error: See Error Codes in Appendix No Data: 9015 |
data | JSON Array | The returned data will be listed in the following table. |
err_text | String(255) | Error message |
Data Object
Parameter | Format | Description |
---|---|---|
activityDate | String(10) | Event Date (dd-mm-yyyy) |
activityNo | String(20) | Event Code |
activityName | String(100) | Event name |
awardData | JSON Array | The returned data will be listed in the following table. |
AwardData Object
Parameter | Format | Description |
---|---|---|
awardId | String(3) | Reward Code |
awardName | String(50) | Reward Name |
rankData | JSON Array | The returned data will be listed in the following table. |
RankData Object
Parameter | Format | Description |
---|---|---|
rank | Int | Reward Ranking |
uid | String(50) | Player ID |
amount | Double | Reward |
parent | String(50) | Agent ID |
Operation Sample
// Http Request
http://{API_Address}/apiRequest.do?dc=jb&x=udbFVt_xv0tsAmLDpz5Z3Ct4-p0gedUPdQOUWsfd6PHz9Ky-wM3mIC9El4kwl_SlX3lpraVaCLnpK0WsgKmpYTV9XpYncHzbtvn591qfaAwpGyOvsS4v1Yj7OvpRw_iU4554RuSsvHpI9jaj4XUgTK5yzb
WKEddANjAAbxF0s=
// Http Response (success)
{
"status":"0000",
"data":[
{
"activityNo":"1535335791346",
"activityName":"财神发发发",
"activityDate":"29-08-2018",
"awardData":[
{
"awardId":"1",
"awardName":"白银",
"rankData":[
{
"rank":3,
"amount":500,
"id":"testpl01",
"parent":"testag"
},
{
"rank":4,
"amount":500,
"uid":"testpl02",
"parent":"testag"
},
{
"rank":7,
"amount":300,
"uid":"testpl03",
"parent":"testag"
}
]
},
{
"awardId":"2",
"awardName":"黄金",
"rankData":[
{
"rank":2,
"amount":10000,
"uid":"testpl04",
"parent":"testag"
}
]
}
]
}
]
}
// Http Response (error)
{
"status":"9005",
"err_text":"Assertion(SAML) didn't pass the timestamp validation."
}