Google Chat 스페이스의 이벤트를 반환합니다. 이벤트 페이로드에는 변경된 리소스의 최신 버전이 포함됩니다. 예를 들어 새 메시지에 관한 이벤트를 요청했지만 나중에 메시지가 업데이트된 경우 서버는 이벤트 페이로드에서 업데이트된 Message
리소스를 반환합니다.
참고: 이 요청의 스페이스 이벤트 데이터의 스페이스 객체에는 permissionSettings
필드가 반환되지 않습니다.
요청된 데이터를 읽는 데 적합한 승인 범위를 사용하여 다음 유형의 인증을 지원합니다.
다음 승인 범위 중 하나를 사용하여 개발자 프리뷰에서 관리자 승인을 통한 앱 인증
https://www.googleapis.com/auth/chat.app.spaces
https://www.googleapis.com/auth/chat.app.messages.readonly
https://www.googleapis.com/auth/chat.app.memberships
다음 승인 범위 중 하나를 사용한 사용자 인증
https://www.googleapis.com/auth/chat.spaces.readonly
https://www.googleapis.com/auth/chat.spaces
https://www.googleapis.com/auth/chat.messages.readonly
https://www.googleapis.com/auth/chat.messages
https://www.googleapis.com/auth/chat.messages.reactions.readonly
https://www.googleapis.com/auth/chat.messages.reactions
https://www.googleapis.com/auth/chat.memberships.readonly
https://www.googleapis.com/auth/chat.memberships
이벤트를 가져오려면 인증된 호출자가 스페이스의 구성원이어야 합니다.
예는 Google Chat 스페이스에서 이벤트에 관한 세부정보 가져오기를 참고하세요.
HTTP 요청
GET https://chat.googleapis.com/v1/{name=spaces/*/spaceEvents/*}
URL은 gRPC 트랜스코딩 문법을 사용합니다.
경로 매개변수
매개변수 | |
---|---|
name |
필수 항목입니다. 스페이스 이벤트의 리소스 이름입니다. 형식: |
요청 본문
요청 본문은 비어 있어야 합니다.
응답 본문
성공한 경우 응답 본문에 SpaceEvent
의 인스턴스가 포함됩니다.
승인 범위
다음 OAuth 범위 중 하나가 필요합니다.
https://www.googleapis.com/auth/chat.app.memberships
https://www.googleapis.com/auth/chat.app.messages.readonly
https://www.googleapis.com/auth/chat.app.spaces
https://www.googleapis.com/auth/chat.spaces
https://www.googleapis.com/auth/chat.spaces.readonly
https://www.googleapis.com/auth/chat.messages
https://www.googleapis.com/auth/chat.messages.readonly
https://www.googleapis.com/auth/chat.memberships
https://www.googleapis.com/auth/chat.memberships.readonly
https://www.googleapis.com/auth/chat.messages.reactions
https://www.googleapis.com/auth/chat.messages.reactions.readonly
자세한 내용은 승인 가이드를 참고하세요.