Method: urlNotifications.publish
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
HTTP 请求
POST https://indexing.googleapis.com/v3/urlNotifications:publish
该网址采用 Google API HTTP 注释语法。
请求正文
请求正文包含 UrlNotification 实例。
响应正文
如果成功的话,响应正文包含具有以下结构的数据:
urlNotifications.publish 的输出
| 字段 |
urlNotificationMetadata |
object(UrlNotificationMetadata)
针对此网址收到的通知事件的说明。
|
授权作用域
需要以下 OAuth 作用域:
https://www.googleapis.com/auth/indexing
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-10-05。
[null,null,["最后更新时间 (UTC):2025-10-05。"],[],["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"]]