ReadGlobalStatsSubset
Reads a subset of global statistics.
Service | Operation |
---|---|
globalGameStatistics | READ_SUBSET |
Method Parameters
Parameter | Description |
---|---|
statistics | A collection containing the statistics to 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 statistics = [
"ESTIMATE", "POINTS"
];
var globalStatisticsProxy = bridge.getGlobalStatisticsServiceProxy();
var postResult = globalStatisticsProxy.readGlobalStatsSubset(statistics);
if (postResult.status == 200) {
// Success!
}
{
"service": "globalGameStatistics",
"operation": "READ_SUBSET",
"data": {
"statistics": [
"ESTIMATE", "POINTS"
]
}
}
JSON Response
{
"data": {
"statistics": {
"POINTS": 11,
"ESTIMATE": 5
}
},
"status": 200
}