Method: spaces.get
HTTP 请求
GET https://chat.googleapis.com/v1/{name=spaces/*}
网址采用 gRPC 转码语法。
路径参数
参数 |
name |
string
必需。聊天室的资源名称,格式为 spaces/{space} 。 格式:spaces/{space}
|
查询参数
参数 |
useAdminAccess |
boolean
可选。如果为 true ,则该方法会使用用户的 Google Workspace 管理员权限运行。 发起通话的用户必须是拥有“管理聊天和聊天室对话”权限的 Google Workspace 管理员。 需要 chat.admin.spaces 或 chat.admin.spaces.readonly OAuth 2.0 范围。
|
响应正文
如果成功,则响应正文包含一个 Space
实例。
授权范围
需要以下 OAuth 范围之一:
https://www.googleapis.com/auth/chat.admin.spaces
https://www.googleapis.com/auth/chat.admin.spaces.readonly
https://www.googleapis.com/auth/chat.spaces
https://www.googleapis.com/auth/chat.spaces.readonly
https://www.googleapis.com/auth/chat.bot
https://www.googleapis.com/auth/chat.app.spaces
有关详情,请参阅授权指南。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-11-04。
[null,null,["最后更新时间 (UTC):2024-11-04。"],[[["Returns detailed information about a Google Chat space, including its properties and settings."],["Requires a specific HTTP request structure using the space's resource name as a path parameter."],["Offers optional use of administrator privileges via a query parameter for authorized users."],["Supports various authentication methods, including app and user authentication with specific OAuth scopes for authorization."],["Provides a comprehensive response containing details about the space upon successful execution."]]],["This describes retrieving details about a space using a `GET` request to `https://chat.googleapis.com/v1/{name=spaces/*}`. The space's resource name is a required path parameter. Optional `useAdminAccess` query parameter allows execution with admin privileges. The request body is empty. A successful response returns a Space object. Authentication requires specific OAuth scopes, and it supports both App and User authentication, including admin access. The request also contains an ability to test the request directly.\n"]]