Skip to main content
Version: 5.7.0

GetNextExperienceLevel

Returns JSON representing the next experience level for the user.

ServiceOperation
playerStatisticsREAD_NEXT_XPLEVEL

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.PlayerStatisticsService.GetNextExperienceLevel(successCallback, failureCallback);
JSON Response
{
"status" : 200,
"data" :
{
"xp_level":{
"gameId":"com.bitheads.unityexample",
"numericLevel":2,
"experience":20,
"rewards":{
"globalGameStatistics":null,
"experiencePoints":null,
"playerStatistics":null,
"achievement":null,
"currencies":{
"gems":10,
"gold":2000
}
},
"facebookAction":"",
"statusTitle":"Jester",
"key":{
"gameId":"com.bitheads.unityexample",
"numericLevel":2,
"primaryKey":true
}
}
}
}