-
Notifications
You must be signed in to change notification settings - Fork 0
랭킹 정산 API draft
Justin edited this page Dec 1, 2013
·
12 revisions
리셋된 점수들에 대해서, 보상이 걸려 있는 경우 지급한다.
- Path: /:version/leaderboards/prize/:leaderboard_id
- Authentication Header: X-APP-KEY, X-AUTH-UUID, X-AUTH-TOKEN
- Method: POST
- Request Parameter: JSON
| Name | Type | Description |
|---|---|---|
| leaderboard_id | String | leaderboard의 id |
- Response Body: JSON
| Name | Type | Description | |||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| result_code | Number | Error Code 참고 | |||||||||||||||||||||||||||||||||||||||||||||||||||
| result_message | Option[String] | 실패한 경우에 메시지 있을 수 있음 | |||||||||||||||||||||||||||||||||||||||||||||||||||
| prized | Option[JSON Object] | 새롭게 정산이 된 경우에 있음
|
- Response Sample:
{
"result_code": 0,
"prized": {
"season_from": "2013-10-06T00:00:00",
"season_to": "2013-10-13T00:00:00",
"prized_at": "2013-10-13T00:00:00",
"score": 123,
"rank": 109,
"top_scores": [
{
"platform_user_id": "user_id_99",
"value": 17524,
"rank": 1
},
{
"platform_user_id": "user_id_98",
"value": 17523,
"rank": 2
},
{
"platform_user_id": "user_id_20",
"value": 12001,
"rank": 3
}
],
"scores_count": 120,
"rewards": [
{
"id": 12314324,
"mail_id": 48382,
"changes": [
{
"key": "item1",
"command": "inc",
"value": 100
},
{
"key": "item2",
"command": "set",
"value": 1
}
]
},
{
"id": 2312341,
"mail_id": 1148382,
"changes": [
{
"key": "char1",
"command": "set",
"value": 1
}
]
}
]
}
}