Method: players.getScopedPlayerIds

현재 인증된 사용자의 범위가 지정된 플레이어 식별자를 검색합니다.

HTTP 요청

GET https://games.googleapis.com/games/v1/players/me/scopedIds

요청 본문

요청 본문은 비어 있어야 합니다.

응답 본문

범위가 지정된 플레이어 식별자입니다.

성공할 경우 응답 본문에 다음 구조의 데이터가 포함됩니다.

JSON 표현
{
  "gamePlayerId": string,
  "developerPlayerKey": string
}
필드
gamePlayerId

string

게임 범위 플레이어 식별자입니다. 이 속성은 player.get gamePlayerId 필드에 반환되는 ID와 동일합니다.

developerPlayerKey

string

특정 개발자의 모든 게임에서 플레이어의 식별자입니다. 모든 플레이어는 한 개발자의 모든 게임에서 동일한 developerPlayerKey를 갖습니다. 게임이 다른 개발자에게 이전되면 게임의 개발자 플레이어 키가 변경됩니다. gamePlayerId는 변경되지 않습니다.

승인 범위

다음 OAuth 범위 중 하나가 필요합니다.

  • https://www.googleapis.com/auth/games
  • https://www.googleapis.com/auth/games_lite

자세한 내용은 OAuth 2.0 개요를 참고하세요.