Method: players.list
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
현재 인증된 사용자의 플레이어 모음을 가져옵니다.
HTTP 요청
GET https://games.googleapis.com/games/v1/players/me/players/{collection}
경로 매개변수
매개변수 |
collection |
enum (Collection )
가져오는 플레이어 모음
|
쿼리 매개변수
매개변수 |
language |
string
이 메서드에서 반환된 문자열에 사용할 기본 언어입니다.
|
maxResults |
integer
페이징에 사용되는 응답에서 반환할 최대 플레이어 리소스 수입니다. 응답의 경우 반환된 실제 플레이어 리소스 수가 지정된 maxResults 보다 적을 수 있습니다.
|
pageToken |
string
이전 요청에서 반환된 토큰입니다.
|
응답 본문
서드 파티 플레이어 목록 응답입니다.
성공하면 응답 본문에 다음과 같은 구조의 데이터가 포함됩니다.
JSON 표현 |
{
"kind": string,
"nextPageToken": string,
"items": [
{
object (Player )
}
]
} |
필드 |
kind |
string
이 리소스의 유형을 고유하게 식별합니다. 값은 항상 고정 문자열 games#playerListResponse 입니다.
|
nextPageToken |
string
결과의 다음 페이지에 해당하는 토큰입니다.
|
items[] |
object (Player )
플레이어
|
승인 범위
다음 OAuth 범위 중 하나가 필요합니다.
https://www.googleapis.com/auth/games
https://www.googleapis.com/auth/games_lite
자세한 내용은 OAuth 2.0 개요를 참고하세요.
컬렉션
Enum |
CONNECTED |
이 게임을 플레이하는 다른 플레이어의 목록을 시간 역순으로 검색합니다. |
VISIBLE |
이 게임에 표시되는 사용자의 소셜 그래프에 있는 플레이어 목록을 가져옵니다. |
FRIENDS_ALL |
사용자의 친구인 플레이어 목록을 알파벳순으로 가져옵니다. |
이 페이지에 나와 있는 콘텐츠와 코드 샘플에는 콘텐츠 라이선스에서 설명하는 라이선스가 적용됩니다. 자바 및 OpenJDK는 Oracle 및 Oracle 계열사의 상표 또는 등록 상표입니다.
최종 업데이트: 2025-07-27(UTC)
[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["필요한 정보가 없음","missingTheInformationINeed","thumb-down"],["너무 복잡함/단계 수가 너무 많음","tooComplicatedTooManySteps","thumb-down"],["오래됨","outOfDate","thumb-down"],["번역 문제","translationIssue","thumb-down"],["샘플/코드 문제","samplesCodeIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 2025-07-27(UTC)"],[],[],null,["# Method: players.list\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Query parameters](#body.QUERY_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n - [JSON representation](#body.ListPlayersResponse.SCHEMA_REPRESENTATION)\n- [Authorization scopes](#body.aspect)\n- [Collection](#Collection)\n- [Try it!](#try-it)\n\nGet the collection of players for the currently authenticated user.\n\n### HTTP request\n\n`GET https://games.googleapis.com/games/v1/players/me/players/{collection}`\n\n### Path parameters\n\n| Parameters ||\n|--------------|------------------------------------------------------------------------------------------------------------------------|\n| `collection` | `enum (`[Collection](/games/services/web/api/rest/v1/players/list#Collection)`)` Collection of players being retrieved |\n\n### Query parameters\n\n| Parameters ||\n|--------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `language` | `string` The preferred language to use for strings returned by this method. |\n| `maxResults` | `integer` The maximum number of player resources to return in the response, used for paging. For any response, the actual number of player resources returned may be less than the specified `maxResults`. |\n| `pageToken` | `string` The token returned by the previous request. |\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nA third party player list response.\n\nIf successful, the response body contains data with the following structure:\n\n| JSON representation |\n|-------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"kind\": string, \"nextPageToken\": string, \"items\": [ { object (/games/services/web/api/rest/v1/players#Player) } ] } ``` |\n\n| Fields ||\n|-----------------|----------------------------------------------------------------------------------------------------------------------|\n| `kind` | `string` Uniquely identifies the type of this resource. Value is always the fixed string `games#playerListResponse`. |\n| `nextPageToken` | `string` Token corresponding to the next page of results. |\n| `items[]` | `object (`[Player](/games/services/web/api/rest/v1/players#Player)`)` The players. |\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).\n\nCollection\n----------\n\n| Enums ||\n|---------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `CONNECTED` | Retrieve a list of players that are also playing this game in reverse chronological order. | The CONNECTED collection of G+ friends is deprecated, use the FRIENDS_ALL collection instead. |\n| `VISIBLE` | Retrieve a list of players in the user's social graph that are visible to this game. | The VISIBLE collection of G+ friends is deprecated, use the FRIENDS_ALL collection instead. |\n| `FRIENDS_ALL` | Retrieve a list of players who are friends of the user in alphabetical order. |"]]