Google Business Performance API มีเมธอด API
ใหม่ที่อนุญาตให้ดึง `DailyMetrics` หลายรายการในคําขอ API รายการเดียว
ตรวจสอบ
กําหนดการเลิกใช้งานและวิธีการย้ายข้อมูลจากเมธอด v4 reportInsights API ไปยัง API ประสิทธิภาพของ Google Business Profile
Method: accounts.admins.create
เชิญผู้ใช้ที่ระบุให้เป็นผู้ดูแลระบบของบัญชีที่ระบุ ผู้ได้รับเชิญต้องยอมรับคำเชิญจึงจะได้รับสิทธิ์เข้าถึงบัญชี ดู [invitations.accept]
[google.mybusiness.v4.ตอบรับคำเชิญ] เพื่อยอมรับคำเชิญทางโปรแกรม
คำขอ HTTP
POST https://mybusiness.googleapis.com/v4/{parent=accounts/*}/admins
URL ใช้ไวยากรณ์การแปลง gRPC
พารามิเตอร์เส้นทาง
พารามิเตอร์ |
parent |
string
ชื่อทรัพยากรของบัญชีที่ผู้ดูแลระบบนี้สร้างให้
|
เนื้อหาของคำขอ
เนื้อความของคำขอมีอินสแตนซ์ของ Admin
เนื้อหาการตอบกลับ
หากทำสำเร็จ เนื้อหาการตอบกลับจะมีอินสแตนซ์ Admin
ที่สร้างขึ้นใหม่
ขอบเขตการให้สิทธิ์
ต้องมีขอบเขต OAuth อย่างใดอย่างหนึ่งต่อไปนี้
https://www.googleapis.com/auth/plus.business.manage
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"],[[["This method invites a user to become an administrator for a specified account, requiring the invitee to accept before gaining access."],["It's deprecated; use the Account Management API's `accounts.admins/create` method instead for creating account administrators."],["The request needs to be a `POST` request to the specified URL with necessary path parameters and request body containing the `Admin` object."],["If successful, the response will include the newly created `Admin` object."],["Proper authorization with the necessary OAuth scopes is required for using this method."]]],["This outlines how to invite a user to be an administrator for an account via a `POST` request to `https://mybusiness.googleapis.com/v4/{parent=accounts/*}/admins`. The `parent` path parameter specifies the account. The request body contains `Admin` data, and a successful response returns a newly created `Admin` instance. Authorization requires either `plus.business.manage` or `business.manage` OAuth scopes. This method is deprecated, with the Account Management API recommended instead.\n"]]