Method: revisions.check
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
HTTP 要求
GET https://games.googleapis.com/games/v1/revisions/check
查詢參數
參數 |
clientRevision |
string
必要欄位。應用程式使用的用戶端 SDK 修訂版本。格式:[PLATFORM_TYPE]:[VERSION_NUMBER] 。PLATFORM_TYPE 可能的值為:* ANDROID - 用戶端正在執行 Android SDK。* IOS - 用戶端正在執行 iOS SDK。* WEB_APP :用戶端是以網頁應用程式的形式執行。
|
回應主體
第三方檢查修訂版本回應。
如果成功,回應主體會含有以下結構的資料:
JSON 表示法 |
{
"kind": string,
"revisionStatus": enum (RevisionStatus ),
"apiVersion": string
} |
欄位 |
kind |
string
專門用於識別這項資源的類型。值一律為固定字串 games#revisionCheckResponse 。
|
revisionStatus |
enum (RevisionStatus )
修訂版本檢查的結果。
|
apiVersion |
string
呼叫 API 方法時,此用戶端修訂版本使用的 API 版本。
|
授權範圍
需要下列其中一種 OAuth 範圍:
https://www.googleapis.com/auth/games
https://www.googleapis.com/auth/games_lite
詳情請參閱 OAuth 2.0 總覽。
RevisionStatus
列舉 |
OK |
目前使用的修訂版本為最新版本。 |
DEPRECATED |
目前有一個新版本可用,但使用的修訂版本依然有效。 |
INVALID |
任何發布版本都不支援目前使用的修訂版本。 |
這個頁面中的內容和程式碼範例均受《內容授權》中的授權所規範。Java 與 OpenJDK 是 Oracle 和/或其關係企業的商標或註冊商標。
上次更新時間:2025-07-27 (世界標準時間)。
[[["容易理解","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 (世界標準時間)。"],[],[],null,["# Method: revisions.check\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Query parameters](#body.QUERY_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n - [JSON representation](#body.CheckRevisionResponse.SCHEMA_REPRESENTATION)\n- [Authorization scopes](#body.aspect)\n- [RevisionStatus](#RevisionStatus)\n- [Try it!](#try-it)\n\nChecks whether the games client is out of date.\n\n### HTTP request\n\n`GET https://games.googleapis.com/games/v1/revisions/check`\n\n### Query parameters\n\n| Parameters ||\n|------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `clientRevision` | `string` Required. The revision of the client SDK used by your application. Format: `[PLATFORM_TYPE]:[VERSION_NUMBER]`. Possible values of `PLATFORM_TYPE` are: \\* `ANDROID` - Client is running the Android SDK. \\* `IOS` - Client is running the iOS SDK. \\* `WEB_APP` - Client is running as a Web App. |\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nA third party checking a revision response.\n\nIf successful, the response body contains data with the following structure:\n\n| JSON representation |\n|-------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"kind\": string, \"revisionStatus\": enum (/games/services/web/api/rest/v1/revisions/check#RevisionStatus), \"apiVersion\": string } ``` |\n\n| Fields ||\n|------------------|-------------------------------------------------------------------------------------------------------------------------------|\n| `kind` | `string` Uniquely identifies the type of this resource. Value is always the fixed string `games#revisionCheckResponse`. |\n| `revisionStatus` | `enum (`[RevisionStatus](/games/services/web/api/rest/v1/revisions/check#RevisionStatus)`)` The result of the revision check. |\n| `apiVersion` | `string` The version of the API this client revision should use when calling API methods. |\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).\n\nRevisionStatus\n--------------\n\nDefines result of the revision check.\n\n| Enums ||\n|--------------|----------------------------------------------------------------------------------------|\n| `OK` | The revision being used is current. |\n| `DEPRECATED` | There is currently a newer version available, but the revision being used still works. |\n| `INVALID` | The revision being used is not supported in any released version. |"]]