Method: spaces.members.get
HTTP 要求
GET https://chat.googleapis.com/v1/{name=spaces/*/members/*}
這個網址使用 gRPC 轉碼語法。
路徑參數
參數 |
name |
string
必要欄位。要擷取的會員資源名稱。 如要使用使用者驗證取得應用程式本身的成員資格,您可以選擇使用 spaces/{space}/members/app 。 格式:spaces/{space}/members/{member} 或 spaces/{space}/members/app 您可以使用使用者的電子郵件地址做為 {member} 的別名。例如 spaces/{space}/members/example@gmail.com ,其中 example@gmail.com 是 Google Chat 使用者的電子郵件地址。
|
查詢參數
參數 |
useAdminAccess |
boolean
選用設定。當 true 時,方法會使用使用者的 Google Workspace 管理員權限執行。 撥打電話的使用者必須是具備「管理即時通訊和聊天室對話」權限的 Google Workspace 管理員。 需要 chat.admin.memberships 或 chat.admin.memberships.readonly OAuth 2.0 範圍。 使用管理員存取權時,系統不支援在聊天室中取得應用程式會員資格。
|
回應主體
如果成功,回應主體會包含 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.bot
https://www.googleapis.com/auth/chat.memberships
https://www.googleapis.com/auth/chat.memberships.readonly
詳情請參閱授權指南。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2024-11-12 (世界標準時間)。
[null,null,["上次更新時間:2024-11-12 (世界標準時間)。"],[[["Returns detailed information about a specific Google Chat membership within a space."],["Supports both app and user authentication, with an option for user authentication to leverage administrator privileges."],["Requires providing the membership's resource name in the request path, allowing the use of email aliases for member identification."],["Optionally accepts a query parameter to utilize the user's Google Workspace administrator privileges for the request."],["Needs authorization with specific OAuth scopes related to Chat memberships and administration."]]],[]]