Skip to main content
Version: 5.7.0

ReadXpLevelsMetaData

Method returns all defined XP levels and any rewards associated with those XP levels.

ServiceOperation
gamificationREAD_XP_LEVELS

Usage

http://localhost:3000
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.ReadXpLevelsMetadata(successCallback, failureCallback);
JSON Response
{
"status": 200,
"data": {
"xp_levels": [
{
"level": 1,
"statusTitle": "Peon",
"experience": 0,
"fbAction": ""
},
{
"level": 2,
"statusTitle": "Small Fry",
"experience": 1000,
"fbAction": "",
"reward": {
"currency": {
"gold": 500
}
}
}
]
}
}