Google Play Game Management . achievements

Instance Methods

reset(achievementId, x__xgafv=None)

Resets the achievement with the given ID for the currently authenticated

resetAll(x__xgafv=None)

Resets all achievements for the currently authenticated player for your

resetAllForAllPlayers(x__xgafv=None)

Resets all draft achievements for all players. This method is only

resetForAllPlayers(achievementId, x__xgafv=None)

Resets the achievement with the given ID for all players. This method is

resetMultipleForAllPlayers(body=None, x__xgafv=None)

Resets achievements with the given IDs for all players. This method is only

Method Details

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

Args:
  achievementId: string, The ID of the achievement used by this method. (required)
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # An achievement reset response.
    "currentState": "A String", # The current state of the achievement.  This is the same as the initial
        # state of the achievement. <br/>Possible values are: <ul>
        # <li>"`HIDDEN`"- Achievement is hidden.</li>
        # <li>"`REVEALED`" - Achievement is revealed.</li>
        # <li>"`UNLOCKED`" - Achievement is unlocked.</li> </ul>
    "kind": "A String", # Uniquely identifies the type of this resource. Value is always the fixed
        # string `gamesManagement#achievementResetResponse`.
    "updateOccurred": True or False, # Flag to indicate if the requested update actually occurred.
    "definitionId": "A String", # The ID of an achievement for which player state has been updated.
  }
resetAll(x__xgafv=None)
Resets all achievements for the currently authenticated player for your
application. This method is only accessible to whitelisted tester accounts
for your application.

Args:
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # Achievement reset all response.
    "kind": "A String", # Uniquely identifies the type of this resource. Value is always the fixed
        # string `gamesManagement#achievementResetAllResponse`.
    "results": [ # The achievement reset results.
      { # An achievement reset response.
        "currentState": "A String", # The current state of the achievement.  This is the same as the initial
            # state of the achievement. <br/>Possible values are: <ul>
            # <li>"`HIDDEN`"- Achievement is hidden.</li>
            # <li>"`REVEALED`" - Achievement is revealed.</li>
            # <li>"`UNLOCKED`" - Achievement is unlocked.</li> </ul>
        "kind": "A String", # Uniquely identifies the type of this resource. Value is always the fixed
            # string `gamesManagement#achievementResetResponse`.
        "updateOccurred": True or False, # Flag to indicate if the requested update actually occurred.
        "definitionId": "A String", # The ID of an achievement for which player state has been updated.
      },
    ],
  }
resetAllForAllPlayers(x__xgafv=None)
Resets all draft achievements for all players. This method is only
available to user accounts for your developer console.

Args:
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format
resetForAllPlayers(achievementId, x__xgafv=None)
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.

Args:
  achievementId: string, The ID of the achievement used by this method. (required)
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format
resetMultipleForAllPlayers(body=None, x__xgafv=None)
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.

Args:
  body: object, The request body.
    The object takes the form of:

{
    "kind": "A String", # Uniquely identifies the type of this resource. Value is always the fixed
        # string `gamesManagement#achievementResetMultipleForAllRequest`.
    "achievement_ids": [ # The IDs of achievements to reset.
      "A String",
    ],
  }

  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format