Achievements: setStepsAtLeast

Requires authorization

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. Try it now.

Request

HTTP request

POST https://www.googleapis.com/games/v1/achievements/achievementId/setStepsAtLeast

Parameters

Parameter name Value Description
Path parameters
achievementId string The ID of the achievement used by this method.
Required query parameters
steps integer The minimum value to set the steps to.
Optional query parameters
consistencyToken long The last-seen mutation timestamp.

Authorization

This request requires authorization with the following scope (read more about authentication and authorization).

Scope
https://www.googleapis.com/auth/games

Request body

Do not supply a request body with this method.

Response

If successful, this method returns a response body with the following structure:

{
  "kind": "games#achievementSetStepsAtLeastResponse",
  "currentSteps": integer,
  "newlyUnlocked": boolean
}
Property name Value Description Notes
kind string Uniquely identifies the type of this resource. Value is always the fixed string games#achievementSetStepsAtLeastResponse.
currentSteps integer The current steps recorded for this incremental achievement.
newlyUnlocked boolean Whether the the current steps for the achievement has reached the number of steps required to unlock.

Try it!

Use the APIs Explorer below to call this method on live data and see the response.

Enviar comentarios sobre…

Play Games Services for Web
Play Games Services for Web