class Achievements extends Resource (View source)

The "achievements" collection of methods.

Typical usage is:

 $gamesManagementService = new Google\Service\GamesManagement(...);
 $achievements = $gamesManagementService->achievements;

Methods

reset(string $achievementId, array $optParams = [])

Resets the achievement with the given ID for the currently authenticated player. This method is only accessible to whitelisted tester accounts for your application. (achievements.reset)

resetAll(array $optParams = [])

Resets all achievements for the currently authenticated player for your application. This method is only accessible to whitelisted tester accounts for your application. (achievements.resetAll)

resetAllForAllPlayers(array $optParams = [])

Resets all draft achievements for all players. This method is only available to user accounts for your developer console.

resetForAllPlayers(string $achievementId, array $optParams = [])

Resets the achievement with the given ID for all players. This method is only available to user accounts for your developer console. Only draft achievements can be reset. (achievements.resetForAllPlayers)

resetMultipleForAllPlayers(AchievementResetMultipleForAllRequest $postBody, array $optParams = [])

Resets achievements with the given IDs for all players. This method is only available to user accounts for your developer console. Only draft achievements may be reset. (achievements.resetMultipleForAllPlayers)

Details

AchievementResetResponse reset(string $achievementId, array $optParams = [])

Resets the achievement with the given ID for the currently authenticated player. This method is only accessible to whitelisted tester accounts for your application. (achievements.reset)

Parameters

string $achievementId

The ID of the achievement used by this method.

array $optParams

Optional parameters.

Return Value

AchievementResetResponse

Exceptions

Exception

AchievementResetAllResponse resetAll(array $optParams = [])

Resets all achievements for the currently authenticated player for your application. This method is only accessible to whitelisted tester accounts for your application. (achievements.resetAll)

Parameters

array $optParams

Optional parameters.

Return Value

AchievementResetAllResponse

Exceptions

Exception

resetAllForAllPlayers(array $optParams = [])

Resets all draft achievements for all players. This method is only available to user accounts for your developer console.

(achievements.resetAllForAllPlayers)

Parameters

array $optParams

Optional parameters.

Exceptions

Exception

resetForAllPlayers(string $achievementId, array $optParams = [])

Resets the achievement with the given ID for all players. This method is only available to user accounts for your developer console. Only draft achievements can be reset. (achievements.resetForAllPlayers)

Parameters

string $achievementId

The ID of the achievement used by this method.

array $optParams

Optional parameters.

Exceptions

Exception

resetMultipleForAllPlayers(AchievementResetMultipleForAllRequest $postBody, array $optParams = [])

Resets achievements with the given IDs for all players. This method is only available to user accounts for your developer console. Only draft achievements may be reset. (achievements.resetMultipleForAllPlayers)

Parameters

AchievementResetMultipleForAllRequest $postBody
array $optParams

Optional parameters.

Exceptions

Exception