GetGlobalLeaderboardEntryCount
Method returns the number of entries in a global leaderboard.
Service | Operation |
---|---|
leaderboard | GET_GLOBAL_LEADERBOARD_ENTRY_COUNT |
Method Parameters
Parameter | Description |
---|---|
leaderboardId | The id of the leaderboard. |
versionId | The version of the leaderboard. Use -1 to specify the currently active leaderboard version. |
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 versionId = -1;
var leaderboardProxy = bridge.getLeaderboardServiceProxy();
var postResult = leaderboardProxy.getGlobalLeaderboardEntryCount(leaderboardId, versionId);
if (postResult.status == 200) {
// Success!
}
{
"service": "leaderboard",
"operation": "GET_GLOBAL_LEADERBOARD_ENTRY_COUNT",
"data": {
"leaderboardId": "default"
}
}
JSON Response
{
"status": 200,
"data": {
"entryCount": 1
}
}