Get Public Ranks of a List of Users

<void> leaderboard.getRanks(<Array> public_ids, <Function> success, <Function> failure);

where:

  • public_ids is an Array of users public IDs.

“success” callback is passed array of rank objects.

Maximum 50 entries are returned.

Response

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