Skip to main content
Version: 5.7.0

GetGlobalLeaderboardVersions

Method returns version information about the global leaderboard and some configuration information for the leaderboard.

ServiceOperation
leaderboardGET_GLOBAL_LEADERBOARD_VERSIONS

Method Parameters

ParameterDescription
leaderboardIdThe id of the leaderboard

Usage

http://localhost:3000
string leaderboardId = "default";
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.GetGlobalLeaderboardVersions(leaderboardId, successCallback, failureCallback);
JSON Response
{
"status": 200,
"data": {
"leaderboardId" : "L1",
"leaderboardType" : "HIGH_VALUE",
"rotationType" : "WEEKLY",
"retainedCount" : 2,
"versions": [
{
"versionId": 27,
"startingAt": 1434499200000,
"endingAt": 1435104000000
},
{
"versionId": 26,
"startingAt": 1433894400000,
"endingAt": 1434499200000
}
]
}
}