Method: spaces.spaceEvents.get
Google Chat 스페이스의 이벤트를 반환합니다. 이벤트 페이로드에는 변경된 리소스의 가장 최신 버전이 포함됩니다. 예를 들어 새 메시지에 대한 이벤트를 요청했지만 메시지가 나중에 업데이트된 경우 서버는 이벤트 페이로드에 업데이트된 Message
리소스를 반환합니다.
사용자 인증이 필요합니다. 이벤트를 가져오려면 인증된 사용자가 스페이스 구성원이어야 합니다.
예시는 Google Chat 스페이스의 일정에 관한 세부정보 확인하기를 참고하세요.
HTTP 요청
GET https://chat.googleapis.com/v1/{name=spaces/*/spaceEvents/*}
URL은 gRPC 트랜스코딩 문법을 사용합니다.
경로 매개변수
매개변수 |
name |
string
필수 항목입니다. 스페이스 이벤트의 리소스 이름입니다. 형식: spaces/{space}/spaceEvents/{spaceEvent}
|
응답 본문
성공한 경우 응답 본문에 SpaceEvent
의 인스턴스가 포함됩니다.
승인 범위
다음 OAuth 범위 중 하나가 필요합니다.
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
자세한 내용은 승인 가이드를 참조하세요.
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2024-07-08(UTC)
[null,null,["최종 업데이트: 2024-07-08(UTC)"],[[["This request returns an event from a Google Chat space, providing the most recent version of the changed resource in the payload."],["To get an event, the authenticated user must be a member of the space and use the `GET` method with the specified URL structure."],["The request body should be empty, and a successful response returns a `SpaceEvent` object."],["This action requires specific OAuth scopes related to Google Chat spaces, messages, memberships, and reactions for authorization."]]],["This describes retrieving a Google Chat space event using a `GET` request to `https://chat.googleapis.com/v1/{name=spaces/*/spaceEvents/*}`. The `name` path parameter, in the format `spaces/{space}/spaceEvents/{spaceEvent}`, is required. The request body must be empty. Successful requests return a `SpaceEvent` instance, containing the resource's latest version. Authentication requires specific OAuth scopes, and the user must be a space member. The event payload details any resource changes within the space.\n"]]