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
有关详情,请参阅授权指南。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-07-08。
[null,null,["最后更新时间 (UTC):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"]]