Google Business Performance API มีเมธอด API
ใหม่ที่อนุญาตให้ดึง `DailyMetrics` หลายรายการในคําขอ API รายการเดียว
ตรวจสอบ
กําหนดการเลิกใช้งานและวิธีการย้ายข้อมูลจากเมธอด v4 reportInsights API ไปยัง API ประสิทธิภาพของ Google Business Profile
Method: locations.admins.create
เชิญผู้ใช้ที่ระบุให้เป็นผู้ดูแลระบบสถานที่ที่ระบุ ผู้ได้รับเชิญต้องยอมรับคำเชิญจึงจะมีสิทธิ์เข้าถึงสถานที่ได้ ดู [invitations.accept]
[google.mybusiness.accountmangement.v1.ยอมรับคําเชิญ] เพื่อยอมรับคำเชิญทางโปรแกรม
คำขอ HTTP
POST https://mybusinessaccountmanagement.googleapis.com/v1/{parent=locations/*}/admins
URL ใช้ไวยากรณ์การแปลง gRPC
พารามิเตอร์เส้นทาง
พารามิเตอร์ |
parent |
string
ต้องระบุ ชื่อทรัพยากรของสถานที่ตั้งที่ผู้ดูแลระบบนี้สร้างให้ locations/{locationId}/admins .
|
เนื้อหาของคำขอ
เนื้อความของคำขอมีอินสแตนซ์ของ Admin
เนื้อหาการตอบกลับ
หากทำสำเร็จ เนื้อหาการตอบกลับจะมีอินสแตนซ์ Admin
ที่สร้างขึ้นใหม่
ขอบเขตการให้สิทธิ์
ต้องใช้ขอบเขต OAuth ต่อไปนี้
https://www.googleapis.com/auth/business.manage
ดูข้อมูลเพิ่มเติมได้ที่ภาพรวมของ OAuth 2.0
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2023-12-02 UTC
[null,null,["อัปเดตล่าสุด 2023-12-02 UTC"],[[["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."]]],[]]