Achievements
class Achievements extends Resource (View source)
The "achievements" collection of methods.
Typical usage is:
$gamesService = new Google\Service\Games(...);
$achievements = $gamesService->achievements;
Methods
Increments the steps of the achievement with the given ID for the currently authenticated player. (achievements.increment)
Lists the progress for all your application's achievements for the currently authenticated player. (achievements.listAchievements)
Sets the state of the achievement with the given ID to REVEALED
for the
currently authenticated player. (achievements.reveal)
Sets the steps for the currently authenticated player towards unlocking an achievement. If the steps parameter is less than the current number of steps that the player already gained for the achievement, the achievement is not modified. (achievements.setStepsAtLeast)
Unlocks this achievement for the currently authenticated player.
Updates multiple achievements for the currently authenticated player.
Details
AchievementIncrementResponse
increment(string $achievementId, int $stepsToIncrement, array $optParams = [])
Increments the steps of the achievement with the given ID for the currently authenticated player. (achievements.increment)
PlayerAchievementListResponse
listAchievements(string $playerId, array $optParams = [])
Lists the progress for all your application's achievements for the currently authenticated player. (achievements.listAchievements)
AchievementRevealResponse
reveal(string $achievementId, array $optParams = [])
Sets the state of the achievement with the given ID to REVEALED
for the
currently authenticated player. (achievements.reveal)
AchievementSetStepsAtLeastResponse
setStepsAtLeast(string $achievementId, int $steps, array $optParams = [])
Sets the steps for the currently authenticated player towards unlocking an achievement. If the steps parameter is less than the current number of steps that the player already gained for the achievement, the achievement is not modified. (achievements.setStepsAtLeast)
AchievementUnlockResponse
unlock(string $achievementId, array $optParams = [])
Unlocks this achievement for the currently authenticated player.
(achievements.unlock)
AchievementUpdateMultipleResponse
updateMultiple(AchievementUpdateMultipleRequest $postBody, array $optParams = [])
Updates multiple achievements for the currently authenticated player.
(achievements.updateMultiple)