ReadGlobalStatsForCategory
Method retrieves the global statistics for the given category.
| Service | Operation |
|---|---|
| globalGameStatistics | READ_FOR_CATEGORY |
Method Parameters
| Parameter | Description |
|---|---|
| category | The global statistics category. |
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 category = "generated";
var globalStatisticsProxy = bridge.getGlobalStatisticsServiceProxy();
var postResult = globalStatisticsProxy.readGlobalStatsForCategory(category);
if (postResult.status == 200) {
// Success!
}
{
"service": "globalGameStatistics",
"operation": "READ_FOR_CATEGORY",
"data": {
"category": "generated"
}
}
JSON Response
{
"data": {
"statistics": {
"cus_ESTIMATE": 5,
"cus_HIGHESTHR": 4,
"cus_INNING": 2,
"cus_INNINGSREM": 0,
"cus_INNINGnew": 1,
"cus_OUTS": 0,
"cus_PLAYERS": 8,
"cus_PLAYER_COUNT": 4,
"cus_PLAYER_COUNTa": 1,
"cus_POINT": 1,
"cus_POINTS": 11,
"cus_otherstat": 0
}
},
"status": 200
}