Method: applications.verify
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
验证随此请求提供的身份验证令牌是否适用于具有指定 ID 的应用,并返回为其授予的玩家 ID。
HTTP 请求
GET https://games.googleapis.com/games/v1/applications/{applicationId}/verify
路径参数
参数 |
applicationId |
string
Google Play 管理中心中的应用 ID。
|
响应正文
第三方应用验证响应资源。
如果成功,响应正文将包含结构如下的数据:
JSON 表示法 |
{
"player_id": string,
"alternate_player_id": string,
"kind": string
} |
字段 |
player_id |
string
获得了此请求中使用的身份验证令牌的玩家的 ID。
|
alternate_player_id |
string
曾用于玩家的备用 ID,系统已向该玩家发放了此请求中使用的身份验证令牌。(此字段通常不会填充。)
|
kind |
string
唯一标识此资源的类型。值始终为固定字符串 games#applicationVerifyResponse 。
|
授权范围
需要以下 OAuth 范围之一:
https://www.googleapis.com/auth/games
https://www.googleapis.com/auth/games_lite
如需了解详情,请参阅 OAuth 2.0 概览。
本页面上的内容和代码示例受内容许可部分所述许可的限制。Java 和 OpenJDK 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-27。
[null,null,["最后更新时间 (UTC):2025-07-27。"],[],[],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)."]]