Get Neighbours ranks

<void> leaderboard.getNeighboursRanks(<String> private_id, <Integer> n_below, <Integer> n_above, <Function> success, <Function> failure);

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

[
{
"public_id": <public id>,
"rank": <rank>,
"name": <name>,
"score": <score>,
"level": <level>,
"public_data": <public data>
},
{
"public_id": <public id>,
"rank": <rank>,
"name": <name>,
"score": <score>,
"level": <level>,
"public_data": <public data>
}
...
]