Method: achievements.list
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
वर्तमान में प्रमाणित प्लेयर के लिए आपके ऐप्लिकेशन की सभी उपलब्धियों की प्रगति को सूचीबद्ध करता है.
एचटीटीपी अनुरोध
GET https://games.googleapis.com/games/v1/players/{playerId}/achievements
पाथ पैरामीटर
पैरामीटर |
playerId |
string
प्लेयर आईडी. पुष्टि किए गए प्लेयर के आईडी की जगह me की वैल्यू का इस्तेमाल किया जा सकता है.
|
क्वेरी पैरामीटर
पैरामीटर |
language |
string
इस तरीके से दिखाई जाने वाली स्ट्रिंग के लिए इस्तेमाल की जाने वाली पसंदीदा भाषा.
|
maxResults |
integer
जवाब में दिए जाने वाले उपलब्धि संसाधनों की ज़्यादा से ज़्यादा संख्या, जिसका इस्तेमाल पेजिंग के लिए किया जाता है. किसी भी जवाब के लिए, दिए गए उपलब्धि संसाधनों की असली संख्या, maxResults से कम हो सकती है.
|
pageToken |
string
पिछले अनुरोध पर मिला टोकन.
|
state |
enum (State )
सर्वर को सिर्फ़ तय की गई स्थिति वाली उपलब्धियां दिखाने के लिए कहता है. अगर यह पैरामीटर तय नहीं किया गया है, तो सभी उपलब्धियां दिखाई जाती हैं.
|
अनुरोध का मुख्य भाग
अनुरोध का मुख्य हिस्सा खाली होना चाहिए.
जवाब का मुख्य भाग
उपलब्धि से जुड़े ऑब्जेक्ट की सूची.
अगर एपीआई सही से जुड़ जाता है, ताे जवाब के मुख्य भाग में नीचे दिए गए स्ट्रक्चर शामिल होता है.
JSON के काेड में दिखाना |
{
"kind": string,
"nextPageToken": string,
"items": [
{
object (PlayerAchievement )
}
]
} |
फ़ील्ड |
kind |
string
इस संसाधन के टाइप की अलग-अलग पहचान करता है. यह वैल्यू हमेशा तय की गई स्ट्रिंग games#playerAchievementListResponse होती है.
|
nextPageToken |
string
नतीजों के अगले पेज के साथ काम करने वाला टोकन.
|
items[] |
object (PlayerAchievement )
उपलब्धियां.
|
अनुमति के दायरे
इनमें से किसी एक OAuth स्कोप की ज़रूरत होती है:
https://www.googleapis.com/auth/games
https://www.googleapis.com/auth/games_lite
ज़्यादा जानकारी के लिए, OAuth 2.0 की खास जानकारी देखें.
स्थिति
Enums |
ALL |
सभी उपलब्धियों की सूची बनाएं. यह डिफ़ॉल्ट रूप से होता है. |
HIDDEN |
सिर्फ़ छिपी हुई उपलब्धियों की सूची बनाएं. |
REVEALED |
सिर्फ़ ज़ाहिर की गई उपलब्धियों की सूची बनाएं. |
UNLOCKED |
सिर्फ़ अनलॉक की गई उपलब्धियों की सूची बनाएं. |
PlayerAchievement
JSON के काेड में दिखाना |
{
"kind": string,
"id": string,
"currentSteps": integer,
"formattedCurrentStepsString": string,
"achievementState": enum (State ),
"lastUpdatedTimestamp": string,
"experiencePoints": string
} |
फ़ील्ड |
kind |
string
इस संसाधन के टाइप की अलग-अलग पहचान करता है. यह वैल्यू हमेशा तय की गई स्ट्रिंग games#playerAchievement होती है.
|
id |
string
उपलब्धि का आईडी.
|
currentSteps |
integer
इंक्रीमेंटल (बढ़ने वाली) उपलब्धि के मौजूदा चरण.
|
formattedCurrentStepsString |
string
स्ट्रिंग के तौर पर इंक्रीमेंटल (बढ़ने वाली) उपलब्धि के मौजूदा चरण.
|
achievementState |
enum (State )
उपलब्धि की स्थिति.
|
lastUpdatedTimestamp |
string (int64 format)
इस उपलब्धि की स्थिति में पिछले बदलाव का टाइमस्टैंप.
|
experiencePoints |
string (int64 format)
उपलब्धि के लिए अनुभव के पॉइंट. यह फ़ील्ड अभी तक अनलॉक नहीं की गई उपलब्धियों के लिए मौजूद नहीं है. यह फ़ील्ड उन उपलब्धियों के लिए भी मौजूद नहीं है जिन्हें टेस्टर ने अनलॉक किया था, लेकिन पब्लिश नहीं किया गया है.
|
स्थिति
उपलब्धि की संभावित स्थितियों के बारे में बताता है.
Enums |
HIDDEN |
उपलब्धि छिपी हुई है. |
REVEALED |
उपलब्धि के बारे में बताया जाता है. |
UNLOCKED |
उपलब्धि अनलॉक है. |
इस पेज पर मौजूद कॉन्टेंट और कोड सैंपल कॉन्टेंट के लाइसेंस में बताए गए लाइसेंस के हिसाब से हैं. Java और OpenJDK, Oracle और/या इससे जुड़ी हुई कंपनियों के ट्रेडमार्क या रजिस्टर किए हुए ट्रेडमार्क हैं.
आखिरी बार 2025-07-27 (UTC) को अपडेट किया गया.
[[["समझने में आसान है","easyToUnderstand","thumb-up"],["मेरी समस्या हल हो गई","solvedMyProblem","thumb-up"],["अन्य","otherUp","thumb-up"]],[["वह जानकारी मौजूद नहीं है जो मुझे चाहिए","missingTheInformationINeed","thumb-down"],["बहुत मुश्किल है / बहुत सारे चरण हैं","tooComplicatedTooManySteps","thumb-down"],["पुराना","outOfDate","thumb-down"],["अनुवाद से जुड़ी समस्या","translationIssue","thumb-down"],["सैंपल / कोड से जुड़ी समस्या","samplesCodeIssue","thumb-down"],["अन्य","otherDown","thumb-down"]],["आखिरी बार 2025-07-27 (UTC) को अपडेट किया गया."],[],[],null,["# Method: achievements.list\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Query parameters](#body.QUERY_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n - [JSON representation](#body.ListAchievementsResponse.SCHEMA_REPRESENTATION)\n- [Authorization scopes](#body.aspect)\n- [State](#State)\n- [PlayerAchievement](#PlayerAchievement)\n - [JSON representation](#PlayerAchievement.SCHEMA_REPRESENTATION)\n- [State](#State_1)\n- [Try it!](#try-it)\n\nLists the progress for all your application's achievements for the currently authenticated player.\n\n### HTTP request\n\n`GET https://games.googleapis.com/games/v1/players/{playerId}/achievements`\n\n### Path parameters\n\n| Parameters ||\n|------------|----------------------------------------------------------------------------------------------|\n| `playerId` | `string` A player ID. A value of `me` may be used in place of the authenticated player's ID. |\n\n### Query parameters\n\n| Parameters ||\n|--------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `language` | `string` The preferred language to use for strings returned by this method. |\n| `maxResults` | `integer` 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`. |\n| `pageToken` | `string` The token returned by the previous request. |\n| `state` | `enum (`[State](/games/services/web/api/rest/v1/achievements/list#State)`)` Tells the server to return only achievements with the specified state. If this parameter isn't specified, all achievements are returned. |\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nA list of achievement objects.\n\nIf successful, the response body contains data with the following structure:\n\n| JSON representation |\n|----------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"kind\": string, \"nextPageToken\": string, \"items\": [ { object (/games/services/web/api/rest/v1/achievements/list#PlayerAchievement) } ] } ``` |\n\n| Fields ||\n|-----------------|---------------------------------------------------------------------------------------------------------------------------------|\n| `kind` | `string` Uniquely identifies the type of this resource. Value is always the fixed string `games#playerAchievementListResponse`. |\n| `nextPageToken` | `string` Token corresponding to the next page of results. |\n| `items[]` | `object (`[PlayerAchievement](/games/services/web/api/rest/v1/achievements/list#PlayerAchievement)`)` The achievements. |\n\n### Authorization scopes\n\nRequires one of the following OAuth scopes:\n\n- `https://www.googleapis.com/auth/games`\n- `\n https://www.googleapis.com/auth/games_lite`\n\nFor more information, see the [OAuth 2.0 Overview](https://developers.google.com/identity/protocols/OAuth2).\n\nState\n-----\n\n| Enums ||\n|------------|---------------------------------------------|\n| `ALL` | List all achievements. This is the default. |\n| `HIDDEN` | List only hidden achievements. |\n| `REVEALED` | List only revealed achievements. |\n| `UNLOCKED` | List only unlocked achievements. |\n\nPlayerAchievement\n-----------------\n\nAn achievement object.\n\n| JSON representation |\n|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"kind\": string, \"id\": string, \"currentSteps\": integer, \"formattedCurrentStepsString\": string, \"achievementState\": enum (/games/services/web/api/rest/v1/achievements/list#State_1), \"lastUpdatedTimestamp\": string, \"experiencePoints\": string } ``` |\n\n| Fields ||\n|-------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `kind` | `string` Uniquely identifies the type of this resource. Value is always the fixed string `games#playerAchievement`. |\n| `id` | `string` The ID of the achievement. |\n| `currentSteps` | `integer` The current steps for an incremental achievement. |\n| `formattedCurrentStepsString` | `string` The current steps for an incremental achievement as a string. |\n| `achievementState` | `enum (`[State](/games/services/web/api/rest/v1/achievements/list#State_1)`)` The state of the achievement. |\n| `lastUpdatedTimestamp` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` The timestamp of the last modification to this achievement's state. |\n| `experiencePoints` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` Experience points earned for the achievement. This field is absent for achievements that have not yet been unlocked and 0 for achievements that have been unlocked by testers but that are unpublished. |\n\nState\n-----\n\nDefines possible states of an achievement.\n\n| Enums ||\n|------------|--------------------------|\n| `HIDDEN` | Achievement is hidden. |\n| `REVEALED` | Achievement is revealed. |\n| `UNLOCKED` | Achievement is unlocked. |"]]