v24
Powered By GitBook
Get Neighbours ranks
1
<void> leaderboard.getNeighboursRanks(<String> private_id, <Integer> n_below, <Integer> n_above, <Function> success, <Function> failure);
Copied!
where:
    private_id id of the user neighbours of whom we're fetching.
    n_below is a number of entries below your rank, max 19.
    n_above is a number of entries above your rank, max 20.
“success” callback is passed an array of rank objects, which also includes own rank.

Response

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 1yr ago
Copy link
Contents
Response