Achievements: resetAll
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
נדרשת הרשאה
איפוס כל ההישגים של הנגן המאומת עבור האפליקציה. השיטה הזו נגישה רק לחשבונות בודקים שנמצאים ברשימת ההיתרים עבור האפליקציה שלך.
בקשה
בקשת HTTP
POST https://www.googleapis.com/games/v1management/achievements/reset
אישור
הבקשה הזו מחייבת הרשאה עם ההיקף הבא (מידע נוסף על אימות והרשאה).
היקף |
https://www.googleapis.com/auth/games |
גוף הבקשה
אל תספקו גוף בקשה בשיטה הזו.
תשובה
אם הפעולה בוצעה ללא שגיאות, השיטה הזו מחזירה גוף תגובה עם המבנה הבא:
{
"kind": "gamesManagement#achievementResetAllResponse",
"results": [
{
"kind": "gamesManagement#achievementResetResponse",
"definitionId": string,
"updateOccurred": boolean,
"currentState": string
}
]
}
שם הנכס |
ערך |
תיאור |
הערות |
kind |
string |
מזהה באופן ייחודי את סוג המשאב הזה. הערך הוא תמיד המחרוזת הקבועה gamesManagement#achievementResetAllResponse . |
|
results[] |
list |
ההישג איפס את התוצאות. |
|
results[].kind |
string |
מזהה באופן ייחודי את סוג המשאב הזה. הערך הוא תמיד המחרוזת הקבועה gamesManagement#achievementResetResponse . |
|
results[].definitionId |
string |
המזהה של הישג שמצב הנגן שלו עודכן. |
|
results[].updateOccurred |
boolean |
סימון שמציין אם העדכון המבוקש אכן התרחש. |
|
results[].currentState |
string |
המצב הנוכחי של ההישג. זה זהה למצב הראשוני של ההישג. הערכים האפשריים הם: - '
HIDDEN ' – ההישג מוסתר. REVEALED - ההישג ייחשף. UNLOCKED - ההישג בוטלה.
|
|
דוגמאות התוכן והקוד שבדף הזה כפופות לרישיונות המפורטים בקטע רישיון לתוכן. Java ו-OpenJDK הם סימנים מסחריים או סימנים מסחריים רשומים של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-07-27 (שעון UTC).
[null,null,["עדכון אחרון: 2025-07-27 (שעון UTC)."],[],[],null,["# Achievements: resetAll\n\n**Requires [authorization](#auth)**\n\nResets all achievements for the currently authenticated player for your application. This method is only accessible to whitelisted tester accounts for your application.\n\nRequest\n-------\n\n### HTTP request\n\n```\nPOST https://www.googleapis.com/games/v1management/achievements/reset\n```\n\n### Authorization\n\nThis request requires authorization with the following scope ([read more about authentication and authorization](/accounts/docs/OAuth2)).\n\n| Scope |\n|-----------------------------------------|\n| `https://www.googleapis.com/auth/games` |\n\n### Request body\n\nDo not supply a request body with this method.\n\nResponse\n--------\n\nIf successful, this method returns a response body with the following structure:\n\n```text\n{\n \"kind\": \"gamesManagement#achievementResetAllResponse\",\n \"results\": [\n {\n \"kind\": \"gamesManagement#achievementResetResponse\",\n \"definitionId\": string,\n \"updateOccurred\": boolean,\n \"currentState\": string\n }\n ]\n}\n```\n\n| Property name | Value | Description | Notes |\n|----------------------------|-----------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------|\n| `kind` | `string` | Uniquely identifies the type of this resource. Value is always the fixed string `gamesManagement#achievementResetAllResponse`. | |\n| `results[]` | `list` | The achievement reset results. | |\n| results[].`kind` | `string` | Uniquely identifies the type of this resource. Value is always the fixed string `gamesManagement#achievementResetResponse`. | |\n| results[].`definitionId` | `string` | The ID of an achievement for which player state has been updated. | |\n| results[].`updateOccurred` | `boolean` | Flag to indicate if the requested update actually occurred. | |\n| results[].`currentState` | `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. | |"]]