Achievements: resetAll
Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Memerlukan otorisasi
Mereset semua pencapaian untuk pemain yang saat ini diautentikasi untuk aplikasi Anda. Metode ini hanya dapat diakses oleh akun penguji yang diizinkan untuk aplikasi Anda.
Minta
Permintaan HTTP
POST https://www.googleapis.com/games/v1management/achievements/reset
Otorisasi
Permintaan ini memerlukan otorisasi dengan cakupan berikut (baca selengkapnya tentang autentikasi dan otorisasi).
Cakupan |
https://www.googleapis.com/auth/games |
Isi permintaan
Jangan berikan isi permintaan dengan metode ini.
Respons
Jika berhasil, metode ini akan menampilkan isi respons dengan struktur berikut:
{
"kind": "gamesManagement#achievementResetAllResponse",
"results": [
{
"kind": "gamesManagement#achievementResetResponse",
"definitionId": string,
"updateOccurred": boolean,
"currentState": string
}
]
}
Nama properti |
Nilai |
Deskripsi |
Catatan |
kind |
string |
Secara unik mengidentifikasi jenis resource ini. Nilainya selalu berupa string tetap gamesManagement#achievementResetAllResponse . |
|
results[] |
list |
Hasil reset pencapaian. |
|
results[].kind |
string |
Secara unik mengidentifikasi jenis resource ini. Nilainya selalu berupa string tetap gamesManagement#achievementResetResponse . |
|
results[].definitionId |
string |
ID pencapaian yang status pemainnya telah diperbarui. |
|
results[].updateOccurred |
boolean |
Tanda untuk menunjukkan apakah pembaruan yang diminta benar-benar terjadi. |
|
results[].currentState |
string |
Status pencapaian saat ini. Ini sama dengan status awal pencapaian. Nilai yang mungkin adalah: - "
HIDDEN "- Pencapaian disembunyikan. - "
REVEALED " - Pencapaian terungkap. - "
UNLOCKED " - Pencapaian diraih.
|
|
Konten dan contoh kode di halaman ini tunduk kepada lisensi yang dijelaskan dalam Lisensi Konten. Java dan OpenJDK adalah merek dagang atau merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2025-07-27 UTC.
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Informasi yang saya butuhkan tidak ada","missingTheInformationINeed","thumb-down"],["Terlalu rumit/langkahnya terlalu banyak","tooComplicatedTooManySteps","thumb-down"],["Sudah usang","outOfDate","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Masalah kode / contoh","samplesCodeIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 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. | |"]]