Method: scores.listWindow
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
একজন খেলোয়াড়ের স্কোরের চারপাশে (এবং সহ) লিডারবোর্ডে স্কোর তালিকাভুক্ত করে।
HTTP অনুরোধ
GET https://games.googleapis.com/games/v1/leaderboards/{leaderboardId}/window/{collection}
পাথ প্যারামিটার
পরামিতি |
---|
leaderboardId | string লিডারবোর্ডের আইডি। |
collection | enum ( ScoreCollection ) আপনি অনুরোধ করছেন স্কোর সংগ্রহ. |
ক্যোয়ারী প্যারামিটার
পরামিতি |
---|
language | string এই পদ্ধতির দ্বারা প্রত্যাবর্তিত স্ট্রিংগুলির জন্য ব্যবহার করার জন্য পছন্দের ভাষা। |
timeSpan | enum ( ScoreTimeSpan ) প্রয়োজন। আপনি যে স্কোর এবং র্যাঙ্কের জন্য অনুরোধ করছেন তার সময়কাল। |
maxResults | integer প্রতিক্রিয়ায় ফিরতে হবে সর্বোচ্চ সংখ্যক লিডারবোর্ড স্কোর। যেকোনো প্রতিক্রিয়ার জন্য, লিডারবোর্ড স্কোরের প্রকৃত সংখ্যা নির্দিষ্ট maxResults থেকে কম হতে পারে। |
resultsAbove | integer খেলোয়াড়ের স্কোরের উপরে ফিরতে পছন্দের স্কোর। খেলোয়াড় লিডারবোর্ডের নীচে থাকলে আরও স্কোর ফেরত দেওয়া হতে পারে; প্লেয়ার শীর্ষে থাকলে কম ফেরত দেওয়া হতে পারে। সর্বোচ্চ ফলাফলের চেয়ে কম বা সমান হতে হবে। |
returnTopIfAbsent | boolean প্লেয়ার লিডারবোর্ডে না থাকলে শীর্ষ স্কোর ফেরত দেওয়া উচিত কিনা তা সত্য। ডিফল্ট থেকে সত্য। |
pageToken | string টোকেন পূর্ববর্তী অনুরোধ দ্বারা ফিরে. |
শরীরের অনুরোধ
অনুরোধের বডি খালি হতে হবে।
প্রতিক্রিয়া শরীর
সফল হলে, প্রতিক্রিয়া বডিতে ListLeaderboardScoresResponse
এর একটি উদাহরণ থাকে।
অনুমোদনের সুযোগ
নিম্নলিখিত OAuth সুযোগগুলির মধ্যে একটি প্রয়োজন:
-
https://www.googleapis.com/auth/games
-
https://www.googleapis.com/auth/games_lite
আরও তথ্যের জন্য, OAuth 2.0 ওভারভিউ দেখুন।
এই পৃষ্ঠার কন্টেন্ট ও কোডের নমুনাগুলি Content License-এ বর্ণিত লাইসেন্সের অধীনস্থ। Java এবং OpenJDK হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-07-29 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-29 UTC-তে শেষবার আপডেট করা হয়েছে।"],[],[],null,["# Method: scores.listWindow\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Query parameters](#body.QUERY_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nLists the scores in a leaderboard around (and including) a player's score.\n\n### HTTP request\n\n`GET https://games.googleapis.com/games/v1/leaderboards/{leaderboardId}/window/{collection}`\n\n### Path parameters\n\n| Parameters ||\n|-----------------|---------------------------------------------------------------------------------------------------------------------------|\n| `leaderboardId` | `string` The ID of the leaderboard. |\n| `collection` | `enum (`[ScoreCollection](/games/services/web/api/rest/v1/ScoreCollection)`)` The collection of scores you're requesting. |\n\n### Query parameters\n\n| Parameters ||\n|---------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `language` | `string` The preferred language to use for strings returned by this method. |\n| `timeSpan` | `enum (`[ScoreTimeSpan](/games/services/web/api/rest/v1/scores#ScoreTimeSpan)`)` Required. The time span for the scores and ranks you're requesting. |\n| `maxResults` | `integer` The maximum number of leaderboard scores to return in the response. For any response, the actual number of leaderboard scores returned may be less than the specified `maxResults`. |\n| `resultsAbove` | `integer` The preferred number of scores to return above the player's score. More scores may be returned if the player is at the bottom of the leaderboard; fewer may be returned if the player is at the top. Must be less than or equal to maxResults. |\n| `returnTopIfAbsent` | `boolean` True if the top scores should be returned when the player is not in the leaderboard. Defaults to true. |\n| `pageToken` | `string` The token returned by the previous request. |\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nIf successful, the response body contains an instance of [ListLeaderboardScoresResponse](/games/services/web/api/rest/v1/ListLeaderboardScoresResponse).\n\n### Authorization scopes\n\nRequires one of the following OAuth scopes:\n\n- `https://www.googleapis.com/auth/games`\n- `\n https://www.googleapis.com/auth/games_lite`\n\nFor more information, see the [OAuth 2.0 Overview](https://developers.google.com/identity/protocols/OAuth2)."]]