擷取具有指定 ID 的玩家資源。如要擷取目前已驗證使用者的玩家,請將 playerId 設為 me。
HTTP 要求
GET https://games.googleapis.com/games/v1/players/{playerId}
路徑參數
| 參數 | |
|---|---|
| playerId | 
 玩家 ID。 | 
查詢參數
| 參數 | |
|---|---|
| language | 
 此方法傳回的字串偏好語言。 | 
| playerIdConsistencyToken | 
 玩家 ID 的一致性權杖。如果符記存在且無效,呼叫會傳回「找不到」的結果。系統會忽略空白值。另請參閱 GlobalPlayerIdConsistencyTokenProto | 
要求主體
要求主體必須為空白。
回應主體
如果成功,回應主體會包含 Player 的執行例項。
授權範圍
需要下列其中一種 OAuth 範圍:
- https://www.googleapis.com/auth/games
- https://www.googleapis.com/auth/games_lite
詳情請參閱 OAuth 2.0 總覽。
