Scores: resetMultipleForAllPlayers
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
需要授权
重置所有玩家具有给定 ID 的排行榜的得分。此方法仅适用于开发者控制台的用户账号。只能重置草稿排行榜。
请求
HTTP 请求
POST https://www.googleapis.com/games/v1management/scores/resetMultipleForAllPlayers
授权
此请求需要获得以下范围的授权(详细了解身份验证和授权)。
范围 |
https://www.googleapis.com/auth/games |
请求正文
在请求正文中,请提供具有以下结构的数据:
{
"kind": "gamesManagement#scoresResetMultipleForAllRequest",
"leaderboard_ids": [
string
]
}
属性名称 |
值 |
说明 |
备注 |
kind |
string |
唯一标识此资源的类型。值始终为固定字符串 gamesManagement#scoresResetMultipleForAllRequest 。 |
|
leaderboard_ids[] |
list |
要重置的排行榜的 ID。 |
|
本页面上的内容和代码示例受内容许可部分所述许可的限制。Java 和 OpenJDK 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-27。
[null,null,["最后更新时间 (UTC):2025-07-27。"],[],[],null,["# Scores: resetMultipleForAllPlayers\n\n**Requires [authorization](#auth)**\n\nResets scores for the leaderboards with the given IDs for all players. This method is only available to user accounts for your developer console. Only draft leaderboards may be reset.\n\nRequest\n-------\n\n### HTTP request\n\n```\nPOST https://www.googleapis.com/games/v1management/scores/resetMultipleForAllPlayers\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\nIn the request body, supply data with the following structure:\n\n```scdoc\n{\n \"kind\": \"gamesManagement#scoresResetMultipleForAllRequest\",\n \"leaderboard_ids\": [\n string\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#scoresResetMultipleForAllRequest`. | |\n| `leaderboard_ids[]` | `list` | The IDs of leaderboards to reset. | |\n\nResponse\n--------\n\nIf successful, this method returns an empty response body."]]