Google Chat スペースのイベントを返します。イベント ペイロードには、変更されたリソースの最新バージョンが含まれています。たとえば、新しいメッセージに関するイベントをリクエストした後でメッセージが更新された場合、サーバーはイベント ペイロードで更新された Message
リソースを返します。
注: このリクエストの Space イベントデータの Space オブジェクトには、permissionSettings
フィールドは返されません。
リクエストされたデータの読み取りに適した認可スコープを持つユーザー認証が必要です。
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 Transcoding 構文を使用します。
パスパラメータ
パラメータ | |
---|---|
name |
必須。スペース イベントのリソース名。 形式: |
リクエストの本文
リクエストの本文は空にする必要があります。
レスポンスの本文
成功した場合、レスポンスの本文には 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
詳しくは、認可ガイドをご覧ください。