Method: scores.submit
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
নির্দিষ্ট লিডারবোর্ডে একটি স্কোর জমা দেয়।
HTTP অনুরোধ
POST https://games.googleapis.com/games/v1/leaderboards/{leaderboardId}/scores
পাথ প্যারামিটার
পরামিতি |
---|
leaderboardId | string লিডারবোর্ডের আইডি। |
ক্যোয়ারী প্যারামিটার
পরামিতি |
---|
language | string এই পদ্ধতির দ্বারা প্রত্যাবর্তিত স্ট্রিংগুলির জন্য ব্যবহার করার জন্য পছন্দের ভাষা। |
score | string ( int64 format) প্রয়োজন। আপনি যে স্কোর জমা দিচ্ছেন। জমা দেওয়া স্কোর উপেক্ষা করা হয় যদি এটি পূর্বে জমা দেওয়া স্কোরের চেয়ে খারাপ হয়, যেখানে খারাপটি লিডারবোর্ড সাজানোর অর্ডারের উপর নির্ভর করে। স্কোর মানের অর্থ লিডারবোর্ড বিন্যাসের প্রকারের উপর নির্ভর করে। স্থির-বিন্দুর জন্য, স্কোর কাঁচা মান প্রতিনিধিত্ব করে। সময়ের জন্য, স্কোর মিলিসেকেন্ডে অতিবাহিত সময়ের প্রতিনিধিত্ব করে। মুদ্রার জন্য, স্কোর মাইক্রো ইউনিটে একটি মান উপস্থাপন করে। |
scoreTag | string আপনি যে স্কোর জমা দিচ্ছেন সে সম্পর্কে অতিরিক্ত তথ্য। RFC 3986 এর বিভাগ 2.3 দ্বারা সংজ্ঞায়িত মানগুলিতে অবশ্যই 64টির বেশি URI-নিরাপদ অক্ষর থাকতে হবে না। |
শরীরের অনুরোধ
অনুরোধের বডি খালি হতে হবে।
প্রতিক্রিয়া শরীর
সফল হলে, প্রতিক্রিয়া বডিতে SubmitLeaderboardScoreResponse
এর একটি উদাহরণ থাকে।
অনুমোদনের সুযোগ
নিম্নলিখিত 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.submit\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\nSubmits a score to the specified leaderboard.\n\n### HTTP request\n\n`POST https://games.googleapis.com/games/v1/leaderboards/{leaderboardId}/scores`\n\n### Path parameters\n\n| Parameters ||\n|-----------------|-------------------------------------|\n| `leaderboardId` | `string` The ID of the leaderboard. |\n\n### Query parameters\n\n| Parameters ||\n|------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `language` | `string` The preferred language to use for strings returned by this method. |\n| `score` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` Required. The score you're submitting. The submitted score is ignored if it is worse than a previously submitted score, where worse depends on the leaderboard sort order. The meaning of the score value depends on the leaderboard format type. For fixed-point, the score represents the raw value. For time, the score represents elapsed time in milliseconds. For currency, the score represents a value in micro units. |\n| `scoreTag` | `string` Additional information about the score you're submitting. Values must contain no more than 64 URI-safe characters as defined by section 2.3 of RFC 3986. |\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 [SubmitLeaderboardScoreResponse](/games/services/web/api/rest/v1/SubmitLeaderboardScoreResponse).\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)."]]