Google Business Performance API มีเมธอด API
ใหม่ที่อนุญาตให้ดึง `DailyMetrics` หลายรายการในคําขอ API รายการเดียว
ตรวจสอบ
กําหนดการเลิกใช้งานและวิธีการย้ายข้อมูลจากเมธอด v4 reportInsights API ไปยัง API ประสิทธิภาพของ Google Business Profile
Method: accounts.admins.create
เชิญผู้ใช้ที่ระบุให้เป็นผู้ดูแลระบบของบัญชีที่ระบุ ผู้ได้รับเชิญต้องยอมรับคำเชิญจึงจะได้รับสิทธิ์เข้าถึงบัญชี ดู [invitations.accept]
[google.mybusiness.accountmanagement.v1.acceptInvitation] เพื่อยอมรับคำเชิญทางโปรแกรม
คำขอ HTTP
POST https://mybusinessaccountmanagement.googleapis.com/v1/{parent=accounts/*}/admins
URL ใช้ไวยากรณ์การแปลง gRPC
พารามิเตอร์เส้นทาง
พารามิเตอร์ |
parent |
string
ต้องระบุ ชื่อทรัพยากรของบัญชีที่ผู้ดูแลระบบนี้สร้างให้ accounts/{account_id} .
|
เนื้อหาของคำขอ
เนื้อความของคำขอมีอินสแตนซ์ของ Admin
เนื้อหาการตอบกลับ
หากทำสำเร็จ เนื้อหาการตอบกลับจะมีอินสแตนซ์ Admin
ที่สร้างขึ้นใหม่
ขอบเขตการให้สิทธิ์
ต้องใช้ขอบเขต OAuth ต่อไปนี้
https://www.googleapis.com/auth/business.manage
ดูข้อมูลเพิ่มเติมได้ที่ภาพรวมของ OAuth 2.0
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2023-12-01 UTC
[null,null,["อัปเดตล่าสุด 2023-12-01 UTC"],[[["Invites a specified user to become an administrator for a specific account, requiring the invitee's acceptance for access."],["Uses an HTTP POST request to the specified URL with the account ID as a path parameter."],["The request body must contain an instance of the `Admin` object, and a successful response will return a newly created `Admin` object."],["Requires the `https://www.googleapis.com/auth/business.manage` OAuth scope for authorization."]]],["This describes the process of inviting a user to become an account administrator. A `POST` request is sent to `https://mybusinessaccountmanagement.googleapis.com/v1/{parent=accounts/*}/admins`, specifying the `parent` account ID in the path. The request body includes details of the new admin, and a successful response returns the created admin details. The user invited must accept, using the given method. Authorization requires the `https://www.googleapis.com/auth/business.manage` OAuth scope.\n"]]