Skip to main content
Version: 5.7.0

GetPlayersSocialLeaderboard

Retrieve the social leaderboard for a list of players.

ServiceOperation
leaderboardGET_PLAYERS_SOCIAL_LEADERBOARD

Method Parameters

ParameterDescription
leaderboardIdThe ID of the leaderboard
profileIdsThe IDs of the players

Usage

http://localhost:3000
string leaderboardId = "default";
string[] profileIds = { "profile-id", "another-profile-id" };
SuccessCallback successCallback = (response, cbObject) =>
{
Debug.Log(string.Format("Success | {0}", response));
};
FailureCallback failureCallback = (status, code, error, cbObject) =>
{
Debug.Log(string.Format("Failed | {0} {1} {2}", status, code, error));
};

_bc.LeaderboardService.GetPlayersSocialLeaderboard(leaderboardId, profileIds, successCallback, failureCallback);
JSON Response
{
"status": 200,
"data": {
"leaderboardId": "general",
"timeBeforeReset": 3358262,
"leaderboard": [
{
"updatedAt": 1462825797845,
"pictureUrl": null,
"playerName": "Peter",
"playerId": "ee8cad26-16f2-4ef8-9045-3aab84ce6362",
"createdAt": 1462825797845,
"data": {
"nickname": "pete"
},
"score": 100,
"summaryFriendData": null
},
{
"updatedAt": 1462825730011,
"pictureUrl": null,
"playerName": "Billy",
"playerId": "295c510f-507f-4bcf-80e1-ebc73708ec3c",
"createdAt": 1462825730011,
"data": {
"nickname": "bill"
},
"score": 10,
"summaryFriendData": null
}
],
"server_time": 1462825845567
}
}