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 - 客户端以 Web 应用的形式运行。
|
响应正文
第三方检查修订回复。
如果成功,响应正文将包含结构如下的数据:
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 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-27。
[null,null,["最后更新时间 (UTC):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. |"]]