Scores: resetAll
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Cần phải uỷ quyền
Đặt lại toàn bộ điểm số của mọi bảng xếp hạng đối với những người chơi hiện đã được xác thực. Phương thức này chỉ có thể được truy cập bởi các tài khoản người kiểm tra trong danh sách cho phép cho ứng dụng của bạn.
Yêu cầu
Yêu cầu HTTP
POST https://www.googleapis.com/games/v1management/scores/reset
Ủy quyền
Yêu cầu này cần có sự cho phép có phạm vi sau (đọc thêm về quy trình xác thực và uỷ quyền).
Phạm vi |
https://www.googleapis.com/auth/games |
Nội dung yêu cầu
Đừng cung cấp nội dung yêu cầu bằng phương thức này.
Phản hồi
Nếu thành công, phương thức này sẽ trả về nội dung phản hồi có cấu trúc như sau:
{
"kind": "gamesManagement#playerScoreResetAllResponse",
"results": [
{
"kind": "gamesManagement#playerScoreResetResponse",
"definitionId": string,
"resetScoreTimeSpans": [
string
]
}
]
}
Tên tài sản |
Giá trị |
Mô tả |
Ghi chú |
kind |
string |
Xác định duy nhất loại tài nguyên này. Giá trị luôn là chuỗi gamesManagement#playerScoreResetResponse cố định. |
|
results[] |
list |
Bảng xếp hạng đã đặt lại kết quả. |
|
results[].kind |
string |
Xác định duy nhất loại tài nguyên này. Giá trị luôn là chuỗi gamesManagement#playerScoreResetResponse cố định. |
|
results[].definitionId |
string |
Mã của bảng xếp hạng mà trạng thái của người chơi được cập nhật. |
|
results[].resetScoreTimeSpans[] |
list |
Khoảng thời gian của điểm số được cập nhật. Các giá trị có thể là: - "
ALL_TIME " – Tỷ số này là điểm số từ trước đến nay. - "
WEEKLY " – Điểm số này là điểm số hằng tuần. - "
DAILY " – Điểm số là điểm số mỗi ngày. |
|
Nội dung và mã mẫu trên trang này phải tuân thủ các giấy phép như mô tả trong phần Giấy phép nội dung. Java và OpenJDK là nhãn hiệu hoặc nhãn hiệu đã đăng ký của Oracle và/hoặc đơn vị liên kết của Oracle.
Cập nhật lần gần đây nhất: 2025-07-27 UTC.
[null,null,["Cập nhật lần gần đây nhất: 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. | |"]]