借助 My Business Lodging API,您可以管理 Google 上的住宿商家信息。注意:如果您在启用 API 后配额为 0,请通过以下网址申请 GBP API 访问权限:https://developers.google.com/my-business/content/prereqs#request-access。
服务:mybusinesslodging.googleapis.com
如要调用此服务,我们建议您使用 Google 提供的客户端库。如果您的应用需要使用您自己的库来调用此服务,则在发出 API 请求时应使用以下信息。
发现文档
发现文档是用于说明和使用 REST API 的机器可读规范。它用于构建客户端库、IDE 插件以及与 Google API 交互的其他工具。一项服务可能会提供多个发现文档。此服务提供了以下发现文档:
服务端点
服务端点是一个基础网址,指定了 API 服务的网络地址。一项服务可能有多个服务端点。此服务具有以下服务端点,下面的所有 URI 都与此服务端点相关:
https://mybusinesslodging.googleapis.com
REST 资源:v1.locations
| 方法 | |
|---|---|
getLodging |
GET /v1/{name=locations/*/lodging} 返回特定营业地点的住宿信息。 |
updateLodging |
PATCH /v1/{lodging.name=locations/*/lodging} 更新特定营业地点的住宿信息。 |
REST 资源:v1.locations.lodging
| 方法 | |
|---|---|
getGoogleUpdated |
GET /v1/{name=locations/*/lodging}:getGoogleUpdated 返回特定营业地点的 Google 更新住宿。 |