Scores: resetAll
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
認証が必要です
現在認証されているプレーヤーのすべてのリーダーボードのスコアをすべてリセットします。この方法にアクセスできるのは、アプリのホワイトリストに登録されているテスター アカウントのみです。
リクエスト
HTTP リクエスト
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 |
プレーヤーのステータスが更新されたリーダーボードの ID。 |
|
results[].resetScoreTimeSpans[] |
list |
更新されたスコアの期間。 指定できる値は次のとおりです。 - 「
ALL_TIME 」 - スコアは過去のスコアです。 - 「
WEEKLY 」 - スコアは 1 週間のスコアです。 - 「
DAILY 」 - スコアは 1 日あたりのスコアです。 |
|
このページのコンテンツやコードサンプルは、コンテンツ ライセンスに記載のライセンスに従います。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. | |"]]