REST Resource: scores
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
संसाधन: GetLeaderboardScoresResponse
खिलाड़ी के लीडरबोर्ड स्कोर की सूची.
JSON के काेड में दिखाना |
{
"kind": string,
"nextPageToken": string,
"player": {
object (Player )
},
"items": [
{
object (LeaderboardScore )
}
]
} |
फ़ील्ड |
kind |
string
इस संसाधन के टाइप की अलग-अलग पहचान करता है. यह वैल्यू हमेशा तय की गई स्ट्रिंग games#playerLeaderboardScoreListResponse होती है.
|
nextPageToken |
string
नतीजों के अगले पेज के लिए, पेज पर नंबर डालने का टोकन.
|
player |
object (Player )
इस स्कोर के मालिक के लिए खिलाड़ी के संसाधन.
|
items[] |
object (LeaderboardScore )
लीडरबोर्ड के स्कोर.
|
LeaderboardScore
खिलाड़ी के लीडरबोर्ड स्कोर से जुड़ा ऑब्जेक्ट.
फ़ील्ड |
kind |
string
इस संसाधन के टाइप की अलग-अलग पहचान करता है. यह वैल्यू हमेशा तय की गई स्ट्रिंग games#playerLeaderboardScore होती है.
|
leaderboard_id |
string
यह स्कोर उस लीडरबोर्ड का आईडी है जिसमें यह स्कोर है.
|
scoreValue |
string (int64 format)
इस स्कोर की न्यूमेरिक वैल्यू.
|
scoreString |
string
इस स्कोर की फ़ॉर्मैट की गई वैल्यू.
|
publicRank |
object (LeaderboardScoreRank )
इस लीडरबोर्ड में स्कोर की सार्वजनिक रैंक. अगर उपयोगकर्ता अपने स्कोर सार्वजनिक रूप से शेयर नहीं कर रहा है, तो यह ऑब्जेक्ट मौजूद नहीं होगा.
|
socialRank |
object (LeaderboardScoreRank )
इस लीडरबोर्ड में स्कोर की सोशल रैंक.
|
friendsRank |
object (LeaderboardScoreRank )
इस लीडरबोर्ड के लिए दोस्तों के कलेक्शन में स्कोर की रैंक.
|
timeSpan |
enum (ScoreTimeSpan )
इस स्कोर की समयावधि.
|
writeTimestamp |
string (int64 format)
UTC में Epoch के बाद के मिलीसेकंड में, वह टाइमस्टैंप जिस पर यह स्कोर रिकॉर्ड किया गया था.
|
scoreTag |
string
स्कोर के बारे में ज़्यादा जानकारी. आरएफ़सी 3986 के सेक्शन 2.3 के मुताबिक, वैल्यू में 64 से ज़्यादा यूआरआई-सुरक्षित वर्ण नहीं होने चाहिए.
|
LeaderboardScoreRank
लीडरबोर्ड में स्कोर की रैंक.
JSON के काेड में दिखाना |
{
"kind": string,
"rank": string,
"formattedRank": string,
"numScores": string,
"formattedNumScores": string
} |
फ़ील्ड |
kind |
string
इस संसाधन के टाइप की अलग-अलग पहचान करता है. यह वैल्यू हमेशा तय की गई स्ट्रिंग games#leaderboardScoreRank होती है.
|
rank |
string (int64 format)
लीडरबोर्ड में रैंक.
|
formattedRank |
string
लीडरबोर्ड में स्ट्रिंग के तौर पर दिखने वाली रैंक.
|
numScores |
string (int64 format)
लीडरबोर्ड में स्कोर की संख्या.
|
formattedNumScores |
string
लीडरबोर्ड में स्ट्रिंग के तौर पर दिखने वाले स्कोर की संख्या.
|
ScoreTimeSpan
यह बताता है कि स्कोर को कितने समय में देखा जा सकता है.
Enums |
ALL_TIME |
यह स्कोर अब तक का स्कोर है. |
WEEKLY |
यह स्कोर, हफ़्ते के हिसाब से स्कोर होता है. |
DAILY |
यह स्कोर रोज़ का स्कोर है. |
तरीके |
|
पुष्टि किए गए मौजूदा खिलाड़ी के लिए, लीडरबोर्ड में सबसे ज़्यादा स्कोर और वैकल्पिक रैंक पाएं. |
|
लीडरबोर्ड में स्कोर को ऊपर से शुरू करते हुए दिखाता है. |
|
लीडरबोर्ड में खिलाड़ी के स्कोर के आस-पास (और शामिल) के स्कोर की सूची बनाता है. |
|
चुने गए लीडरबोर्ड में स्कोर सबमिट करता है. |
|
लीडरबोर्ड पर एक से ज़्यादा स्कोर सबमिट करता है. |
इस पेज पर मौजूद कॉन्टेंट और कोड सैंपल कॉन्टेंट के लाइसेंस में बताए गए लाइसेंस के हिसाब से हैं. Java और OpenJDK, Oracle और/या इससे जुड़ी हुई कंपनियों के ट्रेडमार्क या रजिस्टर किए हुए ट्रेडमार्क हैं.
आखिरी बार 2025-07-27 (UTC) को अपडेट किया गया.
[[["समझने में आसान है","easyToUnderstand","thumb-up"],["मेरी समस्या हल हो गई","solvedMyProblem","thumb-up"],["अन्य","otherUp","thumb-up"]],[["वह जानकारी मौजूद नहीं है जो मुझे चाहिए","missingTheInformationINeed","thumb-down"],["बहुत मुश्किल है / बहुत सारे चरण हैं","tooComplicatedTooManySteps","thumb-down"],["पुराना","outOfDate","thumb-down"],["अनुवाद से जुड़ी समस्या","translationIssue","thumb-down"],["सैंपल / कोड से जुड़ी समस्या","samplesCodeIssue","thumb-down"],["अन्य","otherDown","thumb-down"]],["आखिरी बार 2025-07-27 (UTC) को अपडेट किया गया."],[],[],null,["# REST Resource: scores\n\n- [Resource: GetLeaderboardScoresResponse](#GetLeaderboardScoresResponse)\n - [JSON representation](#GetLeaderboardScoresResponse.SCHEMA_REPRESENTATION)\n- [LeaderboardScore](#LeaderboardScore)\n - [JSON representation](#LeaderboardScore.SCHEMA_REPRESENTATION)\n- [LeaderboardScoreRank](#LeaderboardScoreRank)\n - [JSON representation](#LeaderboardScoreRank.SCHEMA_REPRESENTATION)\n- [ScoreTimeSpan](#ScoreTimeSpan)\n- [Methods](#METHODS_SUMMARY)\n\nResource: GetLeaderboardScoresResponse\n--------------------------------------\n\nA list of player leaderboard scores.\n\n| JSON representation |\n|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"kind\": string, \"nextPageToken\": string, \"player\": { object (/games/services/web/api/rest/v1/players#Player) }, \"items\": [ { object (/games/services/web/api/rest/v1/scores#LeaderboardScore) } ] } ``` |\n\n| Fields ||\n|-----------------|--------------------------------------------------------------------------------------------------------------------------------------|\n| `kind` | `string` Uniquely identifies the type of this resource. Value is always the fixed string `games#playerLeaderboardScoreListResponse`. |\n| `nextPageToken` | `string` The pagination token for the next page of results. |\n| `player` | `object (`[Player](/games/services/web/api/rest/v1/players#Player)`)` The Player resources for the owner of this score. |\n| `items[]` | `object (`[LeaderboardScore](/games/services/web/api/rest/v1/scores#LeaderboardScore)`)` The leaderboard scores. |\n\nLeaderboardScore\n----------------\n\nA player leaderboard score object.\n\n| JSON representation |\n|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"kind\": string, \"leaderboard_id\": string, \"scoreValue\": string, \"scoreString\": string, \"publicRank\": { object (/games/services/web/api/rest/v1/scores#LeaderboardScoreRank) }, \"socialRank\": { object (/games/services/web/api/rest/v1/scores#LeaderboardScoreRank) }, \"friendsRank\": { object (/games/services/web/api/rest/v1/scores#LeaderboardScoreRank) }, \"timeSpan\": enum (/games/services/web/api/rest/v1/scores#ScoreTimeSpan), \"writeTimestamp\": string, \"scoreTag\": string } ``` |\n\n| Fields ||\n|------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `kind` | `string` Uniquely identifies the type of this resource. Value is always the fixed string `games#playerLeaderboardScore`. |\n| `leaderboard_id` | `string` The ID of the leaderboard this score is in. |\n| `scoreValue` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` The numerical value of this score. |\n| `scoreString` | `string` The formatted value of this score. |\n| `publicRank` | `object (`[LeaderboardScoreRank](/games/services/web/api/rest/v1/scores#LeaderboardScoreRank)`)` The public rank of the score in this leaderboard. This object will not be present if the user is not sharing their scores publicly. |\n| `socialRank` | `object (`[LeaderboardScoreRank](/games/services/web/api/rest/v1/scores#LeaderboardScoreRank)`)` The social rank of the score in this leaderboard. |\n| `friendsRank` | `object (`[LeaderboardScoreRank](/games/services/web/api/rest/v1/scores#LeaderboardScoreRank)`)` The rank of the score in the friends collection for this leaderboard. |\n| `timeSpan` | `enum (`[ScoreTimeSpan](/games/services/web/api/rest/v1/scores#ScoreTimeSpan)`)` The time span of this score. |\n| `writeTimestamp` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` The timestamp at which this score was recorded, in milliseconds since the epoch in UTC. |\n| `scoreTag` | `string` Additional information about the score. Values must contain no more than 64 URI-safe characters as defined by section 2.3 of RFC 3986. |\n\nLeaderboardScoreRank\n--------------------\n\nA score rank in a leaderboard.\n\n| JSON representation |\n|------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"kind\": string, \"rank\": string, \"formattedRank\": string, \"numScores\": string, \"formattedNumScores\": string } ``` |\n\n| Fields ||\n|----------------------|------------------------------------------------------------------------------------------------------------------------------|\n| `kind` | `string` Uniquely identifies the type of this resource. Value is always the fixed string `games#leaderboardScoreRank`. |\n| `rank` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` The rank in the leaderboard. |\n| `formattedRank` | `string` The rank in the leaderboard as a string. |\n| `numScores` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` The number of scores in the leaderboard. |\n| `formattedNumScores` | `string` The number of scores in the leaderboard as a string. |\n\nScoreTimeSpan\n-------------\n\nDefines possible time spans for a score.\n\n| Enums ||\n|------------|---------------------------------|\n| `ALL_TIME` | The score is an all-time score. |\n| `WEEKLY` | The score is a weekly score. |\n| `DAILY` | The score is a daily score. |\n\n| Methods ------- ||\n|-----------------------------------------------------------------------------|------------------------------------------------------------------------------------------------|\n| ### [get](/games/services/web/api/rest/v1/scores/get) | Get high scores, and optionally ranks, in leaderboards for the currently authenticated player. |\n| ### [list](/games/services/web/api/rest/v1/scores/list) | Lists the scores in a leaderboard, starting from the top. |\n| ### [listWindow](/games/services/web/api/rest/v1/scores/listWindow) | Lists the scores in a leaderboard around (and including) a player's score. |\n| ### [submit](/games/services/web/api/rest/v1/scores/submit) | Submits a score to the specified leaderboard. |\n| ### [submitMultiple](/games/services/web/api/rest/v1/scores/submitMultiple) | Submits multiple scores to leaderboards. |"]]