Method: revisions.check
Mantenha tudo organizado com as coleções
Salve e categorize o conteúdo com base nas suas preferências.
Verifica se o cliente de jogos está desatualizado.
Solicitação HTTP
GET https://games.googleapis.com/games/v1/revisions/check
Parâmetros de consulta
Parâmetros |
clientRevision |
string
Obrigatório. A revisão do SDK do cliente usada pelo seu app. Formato: [PLATFORM_TYPE]:[VERSION_NUMBER] . Os valores possíveis de PLATFORM_TYPE são: * ANDROID : o cliente está executando o SDK do Android. * IOS : o cliente está executando o SDK do iOS. * WEB_APP : o cliente está sendo executado como um app da Web.
|
Corpo da solicitação
O corpo da solicitação precisa estar vazio.
Corpo da resposta
Terceiros que verificam uma resposta de revisão.
Se bem-sucedido, o corpo da resposta incluirá dados com a estrutura a seguir:
Representação JSON |
{
"kind": string,
"revisionStatus": enum (RevisionStatus ),
"apiVersion": string
} |
Campos |
kind |
string
Identifica de forma exclusiva o tipo desse recurso. O valor é sempre a string fixa games#revisionCheckResponse .
|
revisionStatus |
enum (RevisionStatus )
O resultado da verificação de revisão.
|
apiVersion |
string
A versão da API que essa revisão do cliente precisa usar ao chamar métodos da API.
|
Escopos de autorização
Requer um dos seguintes escopos do OAuth:
https://www.googleapis.com/auth/games
https://www.googleapis.com/auth/games_lite
Para mais informações, consulte a Visão geral do OAuth 2.0.
RevisionStatus
Define o resultado da verificação de revisão.
Enumerações |
OK |
A revisão em uso é a atual. |
DEPRECATED |
No momento, há uma versão mais recente disponível, mas a revisão em uso ainda funciona. |
INVALID |
A revisão usada não tem suporte em nenhuma versão lançada. |
O conteúdo e os exemplos de código nesta página estão sujeitos às licenças descritas na Licença de conteúdo. Java e OpenJDK são marcas registradas da Oracle e/ou suas afiliadas.
Última atualização 2025-07-27 UTC.
[null,null,["Última atualização 2025-07-27 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. |"]]