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": {
"ESTIMATE": 5,
"HIGHESTHR": 4,
"INNING": 2,
"INNINGSREM": 0,
"INNINGnew": 1,
"OUTS": 0,
"PLAYERS": 8,
"PLAYER_COUNT": 4,
"PLAYER_COUNTa": 1,
"POINT": 1,
"POINTS": 11,
"otherstat": 0
}
},
"status": 200
}