Skip to main content
Version: 5.7.0

ReadAchievements

Read all of the achievements defined for the game.

ServiceOperation
gamificationREAD_ACHIEVEMENTS

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.ReadAchievements(includeMetaData, successCallback, failureCallback);
JSON Response
{
"status": 200,
"data": {
"achievements": [{
"fbEnabled": false,
"imageUrl": "https://api.braincloudservers.com/s3/portal/g/123456/metadata/achievements/testAchievement01.png",
"status": "NOT_AWARDED",
"gameId": "20001",
"steamEnabled": false,
"extraData": null,
"achievementId": "testAchievement01",
"invisibleUntilEarned": false,
"steamAchievementId": null,
"id": "testAchievement01",
"appleEnabled": false,
"title": "Test Achievement 1",
"fbGamePoints": null,
"description": "Test description.",
"appleAchievementId": null
}]
}
}