驗證此要求提供的驗證權杖是針對具有指定 ID 的應用程式,並傳回其授予的玩家 ID。
HTTP 要求
GET https://games.googleapis.com/games/v1/applications/{applicationId}/verify
路徑參數
參數 | |
---|---|
applicationId |
Google Play 開發人員控制台中的應用程式 ID。 |
要求主體
要求主體必須為空白。
回應主體
第三方應用程式驗證回應資源。
如果成功,回應主體即會包含具有以下結構的資料:
JSON 表示法 |
---|
{ "player_id": string, "alternate_player_id": string, "kind": string } |
欄位 | |
---|---|
player_id |
核發此要求中使用的驗證權杖的玩家 ID。 |
alternate_player_id |
核發此要求中使用的驗證權杖的玩家先前使用的替代 ID。(這個欄位通常不會填入資料)。 |
kind |
專門識別這個資源的類型。值一律為固定字串 |
授權範圍
需要下列其中一種 OAuth 範圍:
https://www.googleapis.com/auth/games
https://www.googleapis.com/auth/games_lite
詳情請參閱 OAuth 2.0 總覽。