Google Business Performance API มีเมธอด API
ใหม่ที่อนุญาตให้ดึง `DailyMetrics` หลายรายการในคําขอ API รายการเดียว
ตรวจสอบ
กําหนดการเลิกใช้งานและวิธีการย้ายข้อมูลจากเมธอด v4 reportInsights API ไปยัง API ประสิทธิภาพของ Google Business Profile
Method: accounts.locations.localPosts.create
สร้างโพสต์ในพื้นที่ใหม่ที่เชื่อมโยงกับตำแหน่งที่ระบุและส่งคืนตำแหน่งนั้น
คำขอ HTTP
POST https://mybusiness.googleapis.com/v4/{parent=accounts/*/locations/*}/localPosts
URL ใช้ไวยากรณ์การแปลง gRPC
พารามิเตอร์เส้นทาง
พารามิเตอร์ |
parent |
string
ชื่อของตำแหน่งที่จะสร้างโพสต์ในพื้นที่นี้
|
เนื้อหาของคำขอ
เนื้อความของคำขอมีอินสแตนซ์ของ LocalPost
เนื้อหาการตอบกลับ
หากทำสำเร็จ เนื้อหาการตอบกลับจะมีอินสแตนซ์ LocalPost
ที่สร้างขึ้นใหม่
ขอบเขตการให้สิทธิ์
ต้องมีขอบเขต 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-02 UTC
[null,null,["อัปเดตล่าสุด 2023-12-02 UTC"],[[["Creates a new local post for a specified location and returns the created post data."],["Utilizes an HTTP POST request to `https://mybusiness.googleapis.com/v4/{parent=accounts/*/locations/*}/localPosts`, where `{parent}` specifies the location."],["Requires a request body containing a `LocalPost` object defining the post content."],["The response, upon success, provides the newly created `LocalPost` object."],["Needs authorization with either `https://www.googleapis.com/auth/plus.business.manage` or `https://www.googleapis.com/auth/business.manage` scopes."]]],[]]