REST Resource: leaderboards
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
מקור מידע: Leaderboard
ייצוג JSON |
{
"kind": string,
"id": string,
"name": string,
"iconUrl": string,
"isIconUrlDefault": boolean,
"order": enum (ScoreOrder )
} |
שדות |
kind |
string
מזהה באופן ייחודי את סוג המשאב הזה. הערך הוא תמיד המחרוזת הקבועה games#leaderboard .
|
id |
string
מזהה הלידרבורד.
|
name |
string
שם ה-Leaderboard.
|
iconUrl |
string
סמל הלידרבורד.
|
isIconUrlDefault |
boolean
מציין אם תמונת הסמל שהוחזרה היא תמונת ברירת מחדל או שסופקה מתוך המשחק.
|
order |
enum (ScoreOrder )
איך הציונים מסודרים.
|
ScoreOrder
הזמנות עם תוצאות אפשריות.
טיפוסים בני מנייה (enum) |
LARGER_IS_BETTER |
עדיף ערכים גבוהים יותר. הציונים ממוינים בסדר יורד |
SMALLER_IS_BETTER |
עדיף ערכים קטנים יותר. הציונים ממוינים בסדר עולה |
שיטות |
|
אחזור המטא-נתונים של ה-Leaderboard עם המזהה הנתון. |
|
מפרט את כל המטא-נתונים של הלידרבורד של האפליקציה שלך. |
דוגמאות התוכן והקוד שבדף הזה כפופות לרישיונות המפורטים בקטע רישיון לתוכן. 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. |"]]