Method: revisions.check
Stay organized with collections
Save and categorize content based on your preferences.
Checks whether the games client is out of date.
HTTP request
GET https://games.googleapis.com/games/v1/revisions/check
Query parameters
Parameters |
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.
|
Request body
The request body must be empty.
Response body
A third party checking a revision response.
If successful, the response body contains data with the following structure:
JSON representation |
{
"kind": string,
"revisionStatus": enum (RevisionStatus ),
"apiVersion": string
} |
Fields |
kind |
string
Uniquely identifies the type of this resource. Value is always the fixed string games#revisionCheckResponse .
|
revisionStatus |
enum (RevisionStatus )
The result of the revision check.
|
apiVersion |
string
The version of the API this client revision should use when calling API methods.
|
Authorization scopes
Requires one of the following OAuth scopes:
https://www.googleapis.com/auth/games
https://www.googleapis.com/auth/games_lite
For more information, see the OAuth 2.0 Overview.
RevisionStatus
Defines result of the revision check.
Enums |
OK |
The revision being used is current. |
DEPRECATED |
There is currently a newer version available, but the revision being used still works. |
INVALID |
The revision being used is not supported in any released version. |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2024-10-28 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-28 UTC."],[],[],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. |"]]