v24
Get Top Selected Records
1
<void> leaderboard.getSelection(<Integer> limit, <Function> success, <Function> failure);
Copied!
See REST API for limit description.
“success” callback is passed array of rank objects
1
[
2
{
3
"public_id": <public id>,
4
"rank": <rank>,
5
"name": <name>,
6
"score": <score>,
7
"level": <level>,
8
"public_data": <public data>
9
},
10
{
11
"public_id": <public id>,
12
"rank": <rank>,
13
"name": <name>,
14
"score": <score>,
15
"level": <level>,
16
"public_data": <public data>
17
}
18
...
19
]
Copied!
Last modified 2yr ago
Copy link