Skip to main content

Query Table

Queries leaderboard table information.

Source Code

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"
}
}
}

Request Parameter

ParameterDescriptionType
uidTable identifier codestring

Communication Result

HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
{
"Rotation": "string",
"RotationCount": 0,
"RotationTimeLeft": 0,
"RecordType": "string",
"RecordSortType": "string",
"TotalIds": 0
}

Communication Result Details

Data KeyDescriptionType
RotationLeaderboard typestring
RotationCountLeaderboard cycleinteger
RotationTimeLeftTime left until the next leaderboard cycleinteger
RecordTypeLeaderboard record methodstring
RecordSortTypeLeaderboard sort methodstring
TotalIdsTotal number of players recorded on the leaderboarddouble