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

자세한 내용은 승인 가이드를 참조하세요.