Method: urlNotifications.publish
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
แจ้งว่ามีการอัปเดตหรือลบ URL แล้ว
คำขอ HTTP
POST https://indexing.googleapis.com/v3/urlNotifications:publish
URL ใช้ไวยากรณ์ข้อมูลเสริม HTTP ของ Google API
เนื้อความของคำขอ
เนื้อความของคำขอมีอินสแตนซ์ของ UrlNotification
เนื้อหาการตอบกลับ
หากทำสำเร็จ เนื้อหาการตอบกลับจะมีข้อมูลซึ่งมีโครงสร้างดังต่อไปนี้
เอาต์พุตของ urlNotifications.publish
ฟิลด์ |
urlNotificationMetadata |
object(UrlNotificationMetadata )
คำอธิบายของเหตุการณ์การแจ้งเตือนที่ได้รับสำหรับ URL นี้
|
ขอบเขตการให้สิทธิ์
ต้องใช้ขอบเขต OAuth ต่อไปนี้
https://www.googleapis.com/auth/indexing
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-08-04 UTC
[null,null,["อัปเดตล่าสุด 2025-08-04 UTC"],[],["The core content describes a URL notification system using the Google Indexing API. It details a `POST` request to `https://indexing.googleapis.com/v3/urlNotifications:publish` to notify about URL updates or deletions. The request body utilizes `UrlNotification`, and a successful response contains `urlNotificationMetadata`. Authorization requires the `https://www.googleapis.com/auth/indexing` OAuth scope. The API provides a feature to try out directly and conforms to the google API HTTP annotation.\n"],null,[]]