Method: spaces.spaceEvents.get
HTTP 要求
GET https://chat.googleapis.com/v1/{name=spaces/*/spaceEvents/*}
這個網址使用 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
詳情請參閱授權指南。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2024-07-08 (世界標準時間)。
[null,null,["上次更新時間:2024-07-08 (世界標準時間)。"],[[["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"]]