The "achievements" collection of methods.
More...
|
| call ($name, $arguments, $expected_class=null) |
| TODO: This function needs simplifying.
|
|
| increment ($achievementId, $stepsToIncrement, $optParams=array()) |
| Increments the steps of the achievement with the given ID for the currently authenticated player.
|
|
| listAchievements ($playerId, $optParams=array()) |
| Lists the progress for all your application's achievements for the currently authenticated player.
|
|
| reveal ($achievementId, $optParams=array()) |
| Sets the state of the achievement with the given ID to REVEALED for the currently authenticated player.
|
|
| setStepsAtLeast ($achievementId, $steps, $optParams=array()) |
| Sets the steps for the currently authenticated player towards unlocking an achievement.
|
|
| unlock ($achievementId, $optParams=array()) |
| Unlocks this achievement for the currently authenticated player.
|
|
| updateMultiple (Google_Service_Games_AchievementUpdateMultipleRequest $postBody, $optParams=array()) |
| Updates multiple achievements for the currently authenticated player.
|
|
|
| convertToArrayAndStripNulls ($o) |
|
The "achievements" collection of methods.
Typical usage is: $gamesService = new Google_Service_Games(...); $achievements = $gamesService->achievements;
◆ call()
Google_Service_Resource::call |
( |
| $name, |
|
|
| $arguments, |
|
|
| $expected_class = null ) |
|
inherited |
TODO: This function needs simplifying.
- Parameters
-
$name | |
$arguments | |
$expected_class | - optional, the expected class name |
- Return values
-
Google_Http_Request|expected_class | |
- Exceptions
-
◆ increment()
Google_Service_Games_Achievements_Resource::increment |
( |
| $achievementId, |
|
|
| $stepsToIncrement, |
|
|
| $optParams = array() ) |
Increments the steps of the achievement with the given ID for the currently authenticated player.
(achievements.increment)
- Parameters
-
string | $achievementId | The ID of the achievement used by this method. |
int | $stepsToIncrement | The number of steps to increment. |
array | $optParams | Optional parameters. |
@opt_param string requestId A randomly generated numeric ID for each request specified by the caller. This number is used at the server to ensure that the request is handled correctly across retries.
- Return values
-
◆ listAchievements()
Google_Service_Games_Achievements_Resource::listAchievements |
( |
| $playerId, |
|
|
| $optParams = array() ) |
Lists the progress for all your application's achievements for the currently authenticated player.
(achievements.listAchievements)
- Parameters
-
string | $playerId | A player ID. A value of me may be used in place of the authenticated player's ID. |
array | $optParams | Optional parameters. |
@opt_param string pageToken The token returned by the previous request. @opt_param string state Tells the server to return only achievements with the specified state. If this parameter isn't specified, all achievements are returned. @opt_param int maxResults The maximum number of achievement resources to return in the response, used for paging. For any response, the actual number of achievement resources returned may be less than the specified maxResults. @opt_param string language The preferred language to use for strings returned by this method.
- Return values
-
◆ reveal()
Google_Service_Games_Achievements_Resource::reveal |
( |
| $achievementId, |
|
|
| $optParams = array() ) |
Sets the state of the achievement with the given ID to REVEALED for the currently authenticated player.
(achievements.reveal)
- Parameters
-
string | $achievementId | The ID of the achievement used by this method. |
array | $optParams | Optional parameters. |
- Return values
-
◆ setStepsAtLeast()
Google_Service_Games_Achievements_Resource::setStepsAtLeast |
( |
| $achievementId, |
|
|
| $steps, |
|
|
| $optParams = array() ) |
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)
- Parameters
-
string | $achievementId | The ID of the achievement used by this method. |
int | $steps | The minimum value to set the steps to. |
array | $optParams | Optional parameters. |
- Return values
-
◆ unlock()
Google_Service_Games_Achievements_Resource::unlock |
( |
| $achievementId, |
|
|
| $optParams = array() ) |
Unlocks this achievement for the currently authenticated player.
(achievements.unlock)
- Parameters
-
string | $achievementId | The ID of the achievement used by this method. |
array | $optParams | Optional parameters. |
- Return values
-
◆ updateMultiple()
Updates multiple achievements for the currently authenticated player.
(achievements.updateMultiple)
- Parameters
-
Google_AchievementUpdateMultipleRequest | $postBody | |
array | $optParams | Optional parameters. |
- Return values
-
The documentation for this class was generated from the following file:
- lib/google/src/Google/Service/Games.php