ReadAllGlobalStats
Method returns all of the global statistics.
Service | Operation |
---|---|
globalGameStatistics | READ |
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 globalStatisticsProxy = bridge.getGlobalStatisticsServiceProxy();
var postResult = globalStatisticsProxy.readAllGlobalStats();
if (postResult.status == 200) {
// Success!
}
{
"service": "globalGameStatistics",
"operation": "READ",
"data": {}
}
JSON Response
{
"status": 200,
"data": {
"statistics": {
"TotalXpEarned": 0,
"_GAME_LOGINS": 805
}
}
}