Google Business Performance API 的
NEW API 方法可擷取單一 API 要求中的多個「DailyMetrics」。
請詳閱
淘汰時間表和從 v4 reportInsights API 方法遷移至 Google Business Profile Performance API 的操作說明。
Method: locations.admins.create
邀請指定使用者成為指定位置的管理員。邀請對象必須接受邀請,才能取得該地點的存取權。如要透過程式輔助方式接受邀請,請參閱 [invitations.accept]
[google.mybusiness.accountmangement.v1.AcceptInvite]。
HTTP 要求
POST https://mybusinessaccountmanagement.googleapis.com/v1/{parent=locations/*}/admins
這個網址使用 gRPC 轉碼語法。
路徑參數
參數 |
parent |
string
必要欄位。為管理員建立的位置資源名稱。locations/{locationId}/admins .
|
回應主體
如果成功,回應主體會包含新建立的 Admin
例項。
授權範圍
需要下列 OAuth 範圍:
https://www.googleapis.com/auth/business.manage
詳情請參閱 OAuth 2.0 總覽。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2023-12-02 (世界標準時間)。
[null,null,["上次更新時間:2023-12-02 (世界標準時間)。"],[[["Invites a specified user to become an administrator for a given location, requiring the invitee's acceptance for access."],["Utilizes an HTTP POST request to `https://mybusinessaccountmanagement.googleapis.com/v1/{parent=locations/*}/admins` to create the invitation."],["Requires specifying the location in the request path and providing the administrator details in the request body as defined by the `Admin` resource."],["A successful response returns the newly created `Admin` resource, confirming the invitation."],["Needs authorization with the `https://www.googleapis.com/auth/business.manage` scope for execution."]]],[]]