Skip to main content
Version: 5.7.0

ReadAllGamification

Method retrieves all gamification data for the player.

ServiceOperation
gamificationREAD

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.ReadAllGamification(includeMetaData, successCallback, failureCallback);
JSON Response
{
"status": 200,
"data": {
"milestones": [
{
"id": "milestone01",
"category": "general",
"title": "Level 2 milestone",
"status": "SATISFIED",
"description": "Awarded when you get to level 2",
"gameId": "10068",
"rewards": {
"currency": {
"gold": 1000
}
},
"extraData": null,
"questId": null
}
],
"achievements": [
{
"fbEnabled": true,
"imageUrl": null,
"status": "NOT_AWARDED",
"gameId": "10068",
"steamEnabled": false,
"extraData": null,
"achievementId": "ach01",
"invisibleUntilEarned": false,
"steamAchievementId": "",
"id": "ach01",
"appleEnabled": false,
"title": "Finish Tutorial",
"fbGamePoints": 10,
"description": "Achievement awarded when you finish the tutorial",
"appleAchievementId": ""
}
],
"quests": [],
"xp": {
"xpCapped": false,
"experiencePoints": 0,
"xpLevel": {
"gameId": "10068",
"level": 0,
"statusTitle": "Lesser",
"experience": 0,
"fbAction": ""
},
"experienceLevel": 0
}
}
}