擷取目前已驗證使用者的限定範圍玩家 ID。
HTTP 要求
GET https://games.googleapis.com/games/v1/players/me/scopedIds
要求主體
要求主體必須為空白。
回應主體
限定範圍玩家 ID。
如果成功,回應主體即會包含具有以下結構的資料:
JSON 表示法 |
---|
{ "gamePlayerId": string, "developerPlayerKey": string } |
欄位 | |
---|---|
gamePlayerId |
遊戲範圍玩家 ID。這是您在 Player.get gamePlayerId 欄位中傳回的 ID。 |
developerPlayerKey |
指定開發人員所有遊戲的玩家 ID。在同一名開發人員的所有遊戲中,每位玩家都具備相同的 developerPlayerKey。將遊戲轉移給其他開發人員後,開發人員玩家的主鍵會隨之變更。請注意,GamePlayerId 將維持不變。 |
授權範圍
需要下列其中一種 OAuth 範圍:
https://www.googleapis.com/auth/games
https://www.googleapis.com/auth/games_lite
詳情請參閱 OAuth 2.0 總覽。