Achievements: resetAll
Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
Richiede l'autorizzazione
Reimposta tutti gli obiettivi relativi al player attualmente autenticato per la tua applicazione. Questo metodo è accessibile solo agli account tester autorizzati per la tua applicazione.
Richiesta
Richiesta HTTP
POST https://www.googleapis.com/games/v1management/achievements/reset
Autorizzazione
Questa richiesta richiede l'autorizzazione con il seguente ambito (scopri di più su autenticazione e autorizzazione).
Ambito |
https://www.googleapis.com/auth/games |
Corpo della richiesta
Non fornire un corpo della richiesta con questo metodo.
Risposta
In caso di esito positivo, questo metodo restituisce un corpo della risposta con la seguente struttura:
{
"kind": "gamesManagement#achievementResetAllResponse",
"results": [
{
"kind": "gamesManagement#achievementResetResponse",
"definitionId": string,
"updateOccurred": boolean,
"currentState": string
}
]
}
Nome proprietà |
Valore |
Descrizione |
Note |
kind |
string |
Identifica in modo univoco il tipo di questa risorsa. Il valore è sempre la stringa fissa gamesManagement#achievementResetAllResponse . |
|
results[] |
list |
I risultati della reimpostazione degli obiettivi. |
|
results[].kind |
string |
Identifica in modo univoco il tipo di questa risorsa. Il valore è sempre la stringa fissa gamesManagement#achievementResetResponse . |
|
results[].definitionId |
string |
L'ID di un obiettivo per il quale lo stato del player è stato aggiornato. |
|
results[].updateOccurred |
boolean |
Contrassegno per indicare se l'aggiornamento richiesto si è effettivamente verificato. |
|
results[].currentState |
string |
Lo stato attuale dell'obiettivo. È lo stato iniziale dell'obiettivo. I valori possibili sono: - "
HIDDEN " - Obiettivo nascosto. - "
REVEALED " - L'obiettivo viene svelato. - "
UNLOCKED " - Obiettivo sbloccato.
|
|
I campioni di contenuti e codice in questa pagina sono soggetti alle licenze descritte nella Licenza per i contenuti. Java e OpenJDK sono marchi o marchi registrati di Oracle e/o delle sue società consociate.
Ultimo aggiornamento 2025-07-27 UTC.
[[["Facile da capire","easyToUnderstand","thumb-up"],["Il problema è stato risolto","solvedMyProblem","thumb-up"],["Altra","otherUp","thumb-up"]],[["Mancano le informazioni di cui ho bisogno","missingTheInformationINeed","thumb-down"],["Troppo complicato/troppi passaggi","tooComplicatedTooManySteps","thumb-down"],["Obsoleti","outOfDate","thumb-down"],["Problema di traduzione","translationIssue","thumb-down"],["Problema relativo a esempi/codice","samplesCodeIssue","thumb-down"],["Altra","otherDown","thumb-down"]],["Ultimo aggiornamento 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. | |"]]