REST Resource: leaderboards
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
แหล่งข้อมูล: ลีดเดอร์บอร์ด
แหล่งข้อมูลของลีดเดอร์บอร์ด
การแสดง JSON |
{
"kind": string,
"id": string,
"name": string,
"iconUrl": string,
"isIconUrlDefault": boolean,
"order": enum (ScoreOrder )
} |
ช่อง |
kind |
string
ระบุประเภทของทรัพยากรนี้โดยไม่ซ้ำกัน ค่าเป็นสตริงคงที่ games#leaderboard เสมอ
|
id |
string
รหัสลีดเดอร์บอร์ด
|
name |
string
ชื่อของลีดเดอร์บอร์ด
|
iconUrl |
string
ไอคอนสำหรับลีดเดอร์บอร์ด
|
isIconUrlDefault |
boolean
ระบุว่าภาพไอคอนที่แสดงเป็นภาพเริ่มต้นหรือเป็นภาพจากเกม
|
order |
enum (ScoreOrder )
วิธีเรียงลำดับคะแนน
|
ScoreOrder
คำสั่งให้คะแนนที่เป็นไปได้
Enum |
LARGER_IS_BETTER |
ยิ่งมีค่าสูงก็ยิ่งดี คะแนนจะจัดเรียงจากมากไปน้อย |
SMALLER_IS_BETTER |
ค่ายิ่งน้อยยิ่งดี คะแนนจะจัดเรียงจากน้อยไปหามาก |
เมธอด |
|
ดึงข้อมูลเมตาของลีดเดอร์บอร์ดที่มีรหัสที่กำหนด |
|
แสดงข้อมูลเมตาของลีดเดอร์บอร์ดทั้งหมดสำหรับแอปพลิเคชันของคุณ |
ตัวอย่างเนื้อหาและโค้ดในหน้าเว็บนี้ขึ้นอยู่กับใบอนุญาตที่อธิบายไว้ในใบอนุญาตการใช้เนื้อหา Java และ OpenJDK เป็นเครื่องหมายการค้าหรือเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-27 UTC
[null,null,["อัปเดตล่าสุด 2025-07-27 UTC"],[],[],null,["# REST Resource: leaderboards\n\n- [Resource: Leaderboard](#Leaderboard)\n - [JSON representation](#Leaderboard.SCHEMA_REPRESENTATION)\n- [ScoreOrder](#ScoreOrder)\n- [Methods](#METHODS_SUMMARY)\n\nResource: Leaderboard\n---------------------\n\nThe Leaderboard resource.\n\n| JSON representation |\n|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"kind\": string, \"id\": string, \"name\": string, \"iconUrl\": string, \"isIconUrlDefault\": boolean, \"order\": enum (/games/services/web/api/rest/v1/leaderboards#ScoreOrder) } ``` |\n\n| Fields ||\n|--------------------|---------------------------------------------------------------------------------------------------------------|\n| `kind` | `string` Uniquely identifies the type of this resource. Value is always the fixed string `games#leaderboard`. |\n| `id` | `string` The leaderboard ID. |\n| `name` | `string` The name of the leaderboard. |\n| `iconUrl` | `string` The icon for the leaderboard. |\n| `isIconUrlDefault` | `boolean` Indicates whether the icon image being returned is a default image, or is game-provided. |\n| `order` | `enum (`[ScoreOrder](/games/services/web/api/rest/v1/leaderboards#ScoreOrder)`)` How scores are ordered. |\n\nScoreOrder\n----------\n\nPossible score orders.\n\n| Enums ||\n|---------------------|-----------------------------------------------------------------|\n| `LARGER_IS_BETTER` | Larger values are better; scores are sorted in descending order |\n| `SMALLER_IS_BETTER` | Smaller values are better; scores are sorted in ascending order |\n\n| Methods ------- ||\n|---------------------------------------------------------------|--------------------------------------------------------------|\n| ### [get](/games/services/web/api/rest/v1/leaderboards/get) | Retrieves the metadata of the leaderboard with the given ID. |\n| ### [list](/games/services/web/api/rest/v1/leaderboards/list) | Lists all the leaderboard metadata for your application. |"]]