Seamless
JDB Platform API
Functions
Report-Related
Action 62: Check Event Ranking

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

ParameterFormatMandatoryDescription
actionIntegerY62
tsLongYCurrent system time
parentString(50)YHouse/Manager/Master Agent/Agent ID
startDateString(10)YStart date of the searching range. (dd - MM - yyyy)
endDateString(10)YEnd 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

ParameterFormatDescription
statusString(4)Success: 0000

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

Data Object

ParameterFormatDescription
activityDateString(10)Event Date (dd-mm-yyyy)
activityNoString(20)Event Code
activityNameString(100)Event name
awardDataJSON ArrayThe returned data will be listed in the following table.

AwardData Object

ParameterFormatDescription
awardIdString(3)Reward Code
awardNameString(50)Reward Name
rankDataJSON ArrayThe returned data will be listed in the following table.

RankData Object

ParameterFormatDescription
rankIntReward Ranking
uidString(50)Player ID
amountDoubleReward
parentString(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."
}