傳回會員方案的詳細資料。如需範例,請參閱「取得使用者或 Google Chat 應用程式的成員資格詳細資料」。
支援下列類型的驗證:
應用程式驗證,並使用下列其中一個授權範圍:
https://www.googleapis.com/auth/chat.bot
https://www.googleapis.com/auth/chat.app.memberships
(需要管理員核准)
使用者驗證,並使用下列其中一個授權範圍:
https://www.googleapis.com/auth/chat.memberships.readonly
https://www.googleapis.com/auth/chat.memberships
- 使用者驗證會在管理員帳戶驗證時授予管理員權限,
useAdminAccess
為true
,且使用下列其中一個授權範圍:https://www.googleapis.com/auth/chat.admin.memberships.readonly
https://www.googleapis.com/auth/chat.admin.memberships
HTTP 要求
GET https://chat.googleapis.com/v1/{name=spaces/*/members/*}
這個網址使用 gRPC 轉碼語法。
路徑參數
參數 | |
---|---|
name |
必要欄位。要擷取的會員資格資源名稱。 如要透過使用者驗證取得應用程式的成員資格,您可以選擇使用 格式: 您可以將使用者的電子郵件地址做為 |
查詢參數
參數 | |
---|---|
useAdminAccess |
(選用步驟) 時,這個方法會使用使用者的 Google Workspace 管理員權限執行。 通話使用者必須是具備「管理即時通訊和聊天室對話」權限的 Google Workspace 管理員。 需要 使用管理員存取權時,系統不支援在空間中取得應用程式會員資格。 |
要求主體
要求主體必須為空白。
回應主體
如果成功,回應主體會包含 Membership
的執行例項。
授權範圍
需要下列其中一種 OAuth 範圍:
https://www.googleapis.com/auth/chat.admin.memberships
https://www.googleapis.com/auth/chat.admin.memberships.readonly
https://www.googleapis.com/auth/chat.app.memberships
https://www.googleapis.com/auth/chat.bot
https://www.googleapis.com/auth/chat.memberships
https://www.googleapis.com/auth/chat.memberships.readonly
詳情請參閱授權指南。