Skip to main content
Version: 5.7.0

GetMultiSocialLeaderboard

Reads multiple social leaderboards.

ServiceOperation
leaderboardGET_MULTI_SOCIAL_LEADERBOARD

Method Parameters

ParameterDescription
leaderboardIdsCollection of leaderboard IDs
leaderboardResultCountMaximum count of entries to return for each leaderboard.
replaceNameIf true, the currently logged in player's name will be replaced by the string "You"

Usage

http://localhost:3000
string[] leaderboardIds = { "default" };
int leaderboardResultCount = 1;
bool replaceName = false;
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.GetMultiSocialLeaderboard(leaderboardIds, leaderboardResultCount, replaceName, successCallback, failureCallback);
JSON Response
{
"status": 200,
"data": {
"server_time": 1445952203123,
"leaderboards": [
{
"leaderboardId": "default",
"leaderboard": [
{
"externalId": "pacer5",
"name": "Rollo",
"pictureUrl": "http://localhost:8080/gameserver/s3/portal/g/eggies/metadata/pacers/pacer5.png",
"playerId": "pacer5",
"authenticationType": null,
"score": 100000,
"data": {
"pacerTag": null,
"pacerLeaderboardTag": {}
},
"createdAt": null,
"updatedAt": null
},
{
"externalId": "pacer4",
"name": "Chirp",
"pictureUrl": "http://localhost:8080/gameserver/s3/portal/g/eggies/metadata/pacers/pacer4.png",
"playerId": "pacer4",
"authenticationType": null,
"score": 80000,
"data": {
"pacerTag": null,
"pacerLeaderboardTag": {}
},
"createdAt": null,
"updatedAt": null
}
],
"self": {
"externalId": null,
"name": null,
"pictureUrl": null,
"playerId": "49390659-33bd-4812-b0c4-ab04e614ec98",
"authenticationType": null,
"score": 10,
"data": {
"nickname": "batman"
},
"createdAt": 1445952060607,
"updatedAt": 1445952060607,
"summaryFriendData": null
},
"selfIndex": 5
}
]
}
}