Google Play Game Management . achievements

Instance Methods

close()

Close httplib2 connections.

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.

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.

resetAllForAllPlayers(x__xgafv=None)

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

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.

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.

Method Details

close()
Close httplib2 connections.
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.
    "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.
    "currentState": "A String", # The current state of the achievement. This is the same as the initial state of the achievement. Possible values are: - "`HIDDEN`"- Achievement is hidden. - "`REVEALED`" - Achievement is revealed. - "`UNLOCKED`" - Achievement is unlocked.
    "kind": "A String", # Uniquely identifies the type of this resource. Value is always the fixed string `gamesManagement#achievementResetResponse`.
  }
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.
    "results": [ # The achievement reset results.
      { # An achievement reset response.
        "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.
        "currentState": "A String", # The current state of the achievement. This is the same as the initial state of the achievement. Possible values are: - "`HIDDEN`"- Achievement is hidden. - "`REVEALED`" - Achievement is revealed. - "`UNLOCKED`" - Achievement is unlocked.
        "kind": "A String", # Uniquely identifies the type of this resource. Value is always the fixed string `gamesManagement#achievementResetResponse`.
      },
    ],
    "kind": "A String", # Uniquely identifies the type of this resource. Value is always the fixed string `gamesManagement#achievementResetAllResponse`.
  }
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