My Business Lodging API
借助 My Business Lodging API,您可以在 Google 上管理住宿商家信息。
注意:如果您在启用该 API 后的配额为 0,请申请 GBP API 访问权限。
服务:mybusinesslodging.googleapis.com
要调用此服务,我们建议您使用 Google 提供的客户端库。如果您的应用程序需要使用自己的库来调用此服务,请在发出 API 请求时使用以下信息。
发现文档
发现文档是用于说明和使用 REST API 的机器可读规范。它用于构建客户端库、IDE 插件以及与 Google API 交互的其他工具。一项服务可能会提供多个发现文档。此服务提供了以下发现文档:
服务端点
服务端点是指定 API 服务的网络地址的基本网址。一项服务可能有多个服务端点。此服务具有以下服务端点,下面的所有 URI 都与此服务端点相关:
https://mybusinesslodging.googleapis.com
方法 |
getLodging |
GET /v1/{name=locations/*/lodging}
返回特定地点的住宿地点。 |
updateLodging |
PATCH /v1/{lodging.name=locations/*/lodging}
更新特定地点的住宿地点。 |
方法 |
getGoogleUpdated |
GET /v1/{name=locations/*/lodging}:getGoogleUpdated
返回 Google 更新后的特定营业地点的住宿地点。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2023-12-01。
[null,null,["最后更新时间 (UTC):2023-12-01。"],[[["The My Business Lodging API allows management of lodging business information on Google."],["You may need to request access to the GBP API if your quota is 0 after enabling the API."],["Client libraries are recommended for using this service, but the discovery document and service endpoint are provided for custom integrations."],["The API provides methods to retrieve and update lodging information for specific locations, including Google's updates."]]],["The My Business Lodging API manages lodging business data on Google, accessible via `mybusinesslodging.googleapis.com`. It provides two REST resources: `v1.locations` and `v1.locations.lodging`. `v1.locations` allows retrieving (`getLodging`) and updating (`updateLodging`) a specific location's lodging data. `v1.locations.lodging` permits retrieval of Google's updated lodging information (`getGoogleUpdated`). Access may require requesting GBP API access if the initial quota is zero. Client libraries are recommended; a discovery document is available for custom implementations.\n"]]