Skip to main content
Version: 5.7.0

ReadMilestones

Method retrieves all milestones defined for the game.

ServiceOperation
gamificationREAD_MILESTONES

Method Parameters

ParameterDescription
includeMetaDataWhether to return meta data as well

Usage

http://localhost:3000
bool includeMetaData = false;
SuccessCallback successCallback = (response, cbObject) =>
{
Debug.Log(string.Format("Success | {0}", response));
};
FailureCallback failureCallback = (status, code, error, cbObject) =>
{
Debug.Log(string.Format("Failed | {0} {1} {2}", status, code, error));
};

_bc.GamificationService.ReadMilestones(includeMetaData, successCallback, failureCallback);
JSON Response
{
"data": {
"milestones": [
{
"gameId": "11549",
"questId": null,
"thresholds": {
"playerStatistics": {
"experienceLevel": 1
}
},
"extraData": null,
"unlockThresholds": {
"playerStatistics": {
"statistics": {
"Levels_Completed": 5
}
}
},
"description": "Awarded when you get to player level 1",
"id": "3",
"title": "Level 1 milestone",
"category": "Level_Milestones",
"rewards": {
"currency": {
"Gems": 10
}
},
"status": "IN_PROGRESS"
}
]
},
"status": 200
}