테이블 조회
리더보드 테이블 정보를 조회합니다.
소스 코드
playNANOOHandlers.leaderboardTableShow = function (args) {
var result = plugin['v20240301'].leaderboard.tableShow({
parameters: {
uid: args.uid
}
});
if (result.statusCode === 200) {
const parse = JSON.parse(result.body.toString());
log.debug(parse.Rotation);
log.debug(parse.RotationCount);
log.debug(parse.RotationTimeLeft);
log.debug(parse.RecordType);
log.debug(parse.RecordSortType);
log.debug(parse.TotalIds);
return {
status: "success"
}
} else {
return {
status: "false"
}
}
}
요청 파라미터
파라미터 | 설명 | 타입 |
---|---|---|
uid | 테이블 식별 코드 | string |
통신 결과
HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
{
"Rotation": "string",
"RotationCount": 0,
"RotationTimeLeft": 0,
"RecordType": "string",
"RecordSortType": "string",
"TotalIds": 0
}
통신 결과 상세 정보
데이터키 | 설명 | 타입 |
---|---|---|
Rotation | 리더보드 타입 | string |
RotationCount | 리더보드 회차 | integer |
RotationTimeLeft | 리더보드 다음 회차까지 남은 시간 | integer |
RecordType | 리더보드 기록 방식 | string |
RecordSortType | 리더보드 정렬 방식 | string |
TotalIds | 리더보드에 기록된 전체 플레이어 수 | double |