Method: applications.verify
Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
Verifica che il token di autenticazione fornito con questa richiesta riguardi l'applicazione con l'ID specificato e restituisce l'ID del player per cui è stato concesso.
Richiesta HTTP
GET https://games.googleapis.com/games/v1/applications/{applicationId}/verify
Parametri del percorso
Parametri |
applicationId |
string
L'ID applicazione della console per gli sviluppatori di Google Play.
|
Corpo della richiesta
Il corpo della richiesta deve essere vuoto.
Corpo della risposta
Una risorsa di risposta alla verifica delle applicazioni di terze parti.
In caso di esito positivo, il corpo della risposta contiene dati con la seguente struttura:
Rappresentazione JSON |
{
"player_id": string,
"alternate_player_id": string,
"kind": string
} |
Campi |
player_id |
string
L'ID del player che è stato emesso il token di autenticazione utilizzato in questa richiesta.
|
alternate_player_id |
string
Un ID alternativo che è stato utilizzato una volta per il player su cui è stato emesso il token di autenticazione utilizzato in questa richiesta. Normalmente questo campo non viene compilato.
|
kind |
string
Identifica in modo univoco il tipo di questa risorsa. Il valore è sempre la stringa fissa games#applicationVerifyResponse .
|
Ambiti di autorizzazione
Richiede uno dei seguenti ambiti OAuth:
https://www.googleapis.com/auth/games
https://www.googleapis.com/auth/games_lite
Per ulteriori informazioni, consulta la panoramica di OAuth 2.0.
I campioni di contenuti e codice in questa pagina sono soggetti alle licenze descritte nella Licenza per i contenuti. Java e OpenJDK sono marchi o marchi registrati di Oracle e/o delle sue società consociate.
Ultimo aggiornamento 2025-07-27 UTC.
[null,null,["Ultimo aggiornamento 2025-07-27 UTC."],[],[],null,["# Method: applications.verify\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n - [JSON representation](#body.VerifyAuthTokenResponse.SCHEMA_REPRESENTATION)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nVerifies the auth token provided with this request is for the application with the specified ID, and returns the ID of the player it was granted for.\n\n### HTTP request\n\n`GET https://games.googleapis.com/games/v1/applications/{applicationId}/verify`\n\n### Path parameters\n\n| Parameters ||\n|-----------------|---------------------------------------------------------------------|\n| `applicationId` | `string` The application ID from the Google Play developer console. |\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nA third party application verification response resource.\n\nIf successful, the response body contains data with the following structure:\n\n| JSON representation |\n|--------------------------------------------------------------------------------|\n| ``` { \"player_id\": string, \"alternate_player_id\": string, \"kind\": string } ``` |\n\n| Fields ||\n|-----------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `player_id` | `string` The ID of the player that was issued the auth token used in this request. |\n| `alternate_player_id` | `string` An alternate ID that was once used for the player that was issued the auth token used in this request. (This field is not normally populated.) |\n| `kind` | `string` Uniquely identifies the type of this resource. Value is always the fixed string `games#applicationVerifyResponse`. |\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)."]]