SysReadMilestone
Retrieves the meta-data for the specified milestone.
Service | Operation |
---|---|
gamification | SYS_READ_MILESTONE |
Method Parameters
Parameter | Description |
---|---|
milestoneId | The id of the milestone to read |
Usage
http://localhost:3000
- C#
- C++
- Objective-C
- Java
- JavaScript
- Dart
- Cloud Code
- Raw
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
var milestoneId = "15";
var gamificationProxy = bridge.getGamificationServiceProxy();
var postResult = gamificationProxy.sysReadMilestone(milestoneId);
if (postResult.status == 200) {
// Success!
}
// Cloud Code only. To view example, switch to the Cloud Code tab
JSON Response
{
"status": 200,
"data": {
"milestoneId": "15",
"questId": null,
"title": "Winner Winner",
"description": "Get 50 wins",
"category": "loyalty",
"extraData": {
"secretMission": false,
"actionIndex": 4
},
"rewards": {
"experiencePoints": 1000
},
"thresholds": {
"playerStatistics": {
"statistics": {
"wins": 50
}
}
},
"createdAt": 1574793309304,
"updatedAt": 1574793309304,
"version": 1
}
}