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
詳情請參閱授權指南。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2024-11-04 (世界標準時間)。
[null,null,["上次更新時間: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"]]