Method: spaces.spaceEvents.get
Google Chat スペースからイベントを返します。イベント ペイロードには、変更されたリソースの最新バージョンが含まれます。たとえば、新しいメッセージに関するイベントをリクエストし、その後メッセージが更新された場合、サーバーは更新された Message
リソースをイベント ペイロードで返します。
ユーザー認証が必要です。イベントを取得するには、認証済みのユーザーがスペースのメンバーである必要があります。
例については、Google Chat スペースからの予定の詳細を取得するをご覧ください。
HTTP リクエスト
GET https://chat.googleapis.com/v1/{name=spaces/*/spaceEvents/*}
この URL は gRPC Transcoding 構文を使用します。
パスパラメータ
パラメータ |
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
詳細については、承認ガイドをご覧ください。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は 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"]]