Scores: resetAll
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
अनुमति देना ज़रूरी है
वर्तमान में प्रमाणित खिलाड़ियों के लिए सभी लीडरबोर्ड के लिए सभी स्कोर रीसेट करता है. इस तरीके को सिर्फ़ आपके ऐप्लिकेशन के लिए अनुमति पा चुके टेस्टर खातों से ऐक्सेस किया जा सकता है.
अनुरोध
एचटीटीपी अनुरोध
POST https://www.googleapis.com/games/v1management/scores/reset
अनुमति देना
इस अनुरोध के लिए नीचे दिए गए दायरे के साथ अनुमति की ज़रूरत है (पुष्टि करने और अनुमति देने के बारे में ज़्यादा पढ़ें).
दायरा |
https://www.googleapis.com/auth/games |
अनुरोध का मुख्य भाग
इस तरीके के साथ अनुरोध का मुख्य हिस्सा न दें.
जवाब
सही तरीके से काम करने पर, यह तरीका इस स्ट्रक्चर के साथ रिस्पॉन्स का मुख्य हिस्सा दिखाता है:
{
"kind": "gamesManagement#playerScoreResetAllResponse",
"results": [
{
"kind": "gamesManagement#playerScoreResetResponse",
"definitionId": string,
"resetScoreTimeSpans": [
string
]
}
]
}
प्रॉपर्टी का नाम |
मान |
ब्यौरा |
नोट |
kind |
string |
इस संसाधन के टाइप की अलग-अलग पहचान करता है. यह वैल्यू हमेशा तय की गई स्ट्रिंग gamesManagement#playerScoreResetResponse होती है. |
|
results[] |
list |
लीडरबोर्ड रीसेट होने के नतीजे. |
|
results[].kind |
string |
इस संसाधन के टाइप की अलग-अलग पहचान करता है. यह वैल्यू हमेशा तय की गई स्ट्रिंग gamesManagement#playerScoreResetResponse होती है. |
|
results[].definitionId |
string |
लीडरबोर्ड का आईडी, जिसके लिए खिलाड़ी की स्थिति अपडेट की गई है. |
|
results[].resetScoreTimeSpans[] |
list |
अपडेट किए गए स्कोर की समयावधि. संभावित मान ये हैं: - "
ALL_TIME " - यह स्कोर अब तक का स्कोर होता है. - "
WEEKLY " - यह स्कोर, हफ़्ते के हिसाब से दिया गया स्कोर है. - "
DAILY " - यह स्कोर रोज़ का स्कोर है. |
|
इस पेज पर मौजूद कॉन्टेंट और कोड सैंपल कॉन्टेंट के लाइसेंस में बताए गए लाइसेंस के हिसाब से हैं. Java और OpenJDK, Oracle और/या इससे जुड़ी हुई कंपनियों के ट्रेडमार्क या रजिस्टर किए हुए ट्रेडमार्क हैं.
आखिरी बार 2025-07-27 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2025-07-27 (UTC) को अपडेट किया गया."],[],[],null,["# Scores: resetAll\n\n**Requires [authorization](#auth)**\n\nResets all scores for all leaderboards for the currently authenticated players. 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/scores/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#playerScoreResetAllResponse\",\n \"results\": [\n {\n \"kind\": \"gamesManagement#playerScoreResetResponse\",\n \"definitionId\": string,\n \"resetScoreTimeSpans\": [\n string\n ]\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#playerScoreResetResponse`. | |\n| `results[]` | `list` | The leaderboard reset results. | |\n| results[].`kind` | `string` | Uniquely identifies the type of this resource. Value is always the fixed string `gamesManagement#playerScoreResetResponse`. | |\n| results[].`definitionId` | `string` | The ID of an leaderboard for which player state has been updated. | |\n| results[].`resetScoreTimeSpans[]` | `list` | The time spans of the updated score. Possible values are: - \"`ALL_TIME`\" - The score is an all-time score. - \"`WEEKLY`\" - The score is a weekly score. - \"`DAILY`\" - The score is a daily score. | |"]]