Method: applications.verify
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
此要求提供的驗證權杖適用於具有指定 ID 的應用程式,並傳回獲得該 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 和/或其關係企業的商標或註冊商標。
上次更新時間:2025-07-27 (世界標準時間)。
[null,null,["上次更新時間: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)."]]