Method: spaces.members.get
HTTP 요청
GET https://chat.googleapis.com/v1/{name=spaces/*/members/*}
URL은 gRPC 트랜스코딩 문법을 사용합니다.
경로 매개변수
매개변수 |
name |
string
필수 항목입니다. 검색할 멤버십의 리소스 이름입니다. 사용자 인증을 사용하여 앱 자체 멤버십을 가져오려면 원하는 경우 spaces/{space}/members/app 를 사용하면 됩니다. 형식: spaces/{space}/members/{member} 또는 spaces/{space}/members/app 사용자의 이메일을 {member} 의 별칭으로 사용할 수 있습니다. 예를 들어 spaces/{space}/members/example@gmail.com 와 같이 입력합니다. 여기서 example@gmail.com 은 Google Chat 사용자의 이메일입니다.
|
쿼리 매개변수
매개변수 |
useAdminAccess |
boolean
선택사항입니다. true 인 경우 메서드는 사용자의 Google Workspace 관리자 권한을 사용하여 실행됩니다. 전화를 거는 사용자는 채팅 및 스페이스 대화 관리 권한이 있는 Google Workspace 관리자여야 합니다. chat.admin.memberships 또는 chat.admin.memberships.readonly OAuth 2.0 범위가 필요합니다.
관리 액세스를 사용하는 경우 스페이스에서 앱 멤버십을 가져오는 기능은 지원되지 않습니다.
|
응답 본문
성공한 경우 응답 본문에 Membership
의 인스턴스가 포함됩니다.
승인 범위
다음 OAuth 범위 중 하나가 필요합니다.
https://www.googleapis.com/auth/chat.admin.memberships
https://www.googleapis.com/auth/chat.admin.memberships.readonly
https://www.googleapis.com/auth/chat.bot
https://www.googleapis.com/auth/chat.memberships
https://www.googleapis.com/auth/chat.memberships.readonly
자세한 내용은 승인 가이드를 참조하세요.
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2024-11-12(UTC)
[null,null,["최종 업데이트: 2024-11-12(UTC)"],[[["Returns detailed information about a specific Google Chat membership within a space."],["Supports both app and user authentication, with an option for user authentication to leverage administrator privileges."],["Requires providing the membership's resource name in the request path, allowing the use of email aliases for member identification."],["Optionally accepts a query parameter to utilize the user's Google Workspace administrator privileges for the request."],["Needs authorization with specific OAuth scopes related to Chat memberships and administration."]]],[]]