Get Top Selected Records

<void> leaderboard.getSelection(<Integer> limit, <Function> success, <Function> failure);

See REST API for limit description.

“success” callback is passed array of rank objects

[
{
"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>
}
...
]