Skip to main content
Version: 5.7.0

AwardAchievements

Method will award the achievements specified.

ServiceOperation
gamificationAWARD_ACHIEVEMENTS

Method Parameters

ParameterDescription
achievementIdsA list of achievement ids to award

Usage

http://localhost:3000
string[] achievements = { "EGG_ACH09", "EGG_ACH10" };
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.AwardAchievements(achievements, successCallback, failureCallback);
JSON Response
{
"status": 200,
"data": null
}