- HTTP request
- Query parameters
- Request body
- Response body
- Authorization scopes
- AchievementDefinition
- AchievementType
- InitialAchievementState
- Try it!
Lists all the achievement definitions for your application.
HTTP request
GET https://games.googleapis.com/games/v1/achievements
Query parameters
Parameters | |
---|---|
language |
The preferred language to use for strings returned by this method. |
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 |
pageToken |
The token returned by the previous request. |
Request body
The request body must be empty.
Response body
A list of achievement definition objects.
If successful, the response body contains data with the following structure:
JSON representation |
---|
{
"kind": string,
"nextPageToken": string,
"items": [
{
object ( |
Fields | |
---|---|
kind |
Uniquely identifies the type of this resource. Value is always the fixed string |
nextPageToken |
Token corresponding to the next page of results. |
items[] |
The achievement definitions. |
Authorization scopes
Requires one of the following OAuth scopes:
https://www.googleapis.com/auth/games
https://www.googleapis.com/auth/games_lite
For more information, see the OAuth 2.0 Overview.
AchievementDefinition
An achievement definition object.
JSON representation |
---|
{ "kind": string, "id": string, "name": string, "description": string, "achievementType": enum ( |
Fields | |
---|---|
kind |
Uniquely identifies the type of this resource. Value is always the fixed string |
id |
The ID of the achievement. |
name |
The name of the achievement. |
description |
The description of the achievement. |
achievementType |
The type of the achievement. |
totalSteps |
The total steps for an incremental achievement. |
formattedTotalSteps |
The total steps for an incremental achievement as a string. |
revealedIconUrl |
The image URL for the revealed achievement icon. |
isRevealedIconUrlDefault |
Indicates whether the revealed icon image being returned is a default image, or is provided by the game. |
unlockedIconUrl |
The image URL for the unlocked achievement icon. |
isUnlockedIconUrlDefault |
Indicates whether the unlocked icon image being returned is a default image, or is game-provided. |
initialState |
The initial state of the achievement. |
experiencePoints |
Experience points which will be earned when unlocking this achievement. |
AchievementType
Possible achievement types.
Enums | |
---|---|
STANDARD |
Achievement is either locked or unlocked. |
INCREMENTAL |
Achievement is incremental. |
InitialAchievementState
Possible initial states of an achievement.
Enums | |
---|---|
HIDDEN |
Achievement is hidden. |
REVEALED |
Achievement is revealed. |
UNLOCKED |
Achievement is unlocked. |