GetGlobalLeaderboardVersions
Method returns version information about the global leaderboard and some configuration information for the leaderboard.
Service | Operation |
---|---|
leaderboard | GET_GLOBAL_LEADERBOARD_VERSIONS |
Method Parameters
Parameter | Description |
---|---|
leaderboardId | The id of the leaderboard. |
Usage
http://localhost:3000
- C#
- C++
- Objective-C
- Java
- JavaScript
- Dart
- Cloud Code
- Raw
// S2S call: to view example, switch to the Cloud Code or Raw tab.
// S2S call: to view example, switch to the Cloud Code or Raw tab.
// S2S call: to view example, switch to the Cloud Code or Raw tab.
// S2S call: to view example, switch to the Cloud Code or Raw tab.
// S2S call: to view example, switch to the Cloud Code or Raw tab.
// S2S call: to view example, switch to the Cloud Code or Raw tab.
var leaderboardId = "default";
var leaderboardProxy = bridge.getLeaderboardServiceProxy();
var postResult = leaderboardProxy.getGlobalLeaderboardVersions(leaderboardId);
if (postResult.status == 200) {
// Success!
}
{
"service": "leaderboard",
"operation": "GET_GLOBAL_LEADERBOARD_VERSIONS",
"data": {
"leaderboardId": "default"
}
}
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
}
]
}
}