Lodging API
更新日志
v1.2:2023 年 10 月 26 日
可持续认证
弃用 SustainabilityCertifications
对象。了解详情。
v1.1:2021 年 9 月 9 日
可持续性
在 Lodging
类型中添加了 Sustainability
对象。了解详情。
v1:2021 年 4 月 5 日
API 权限
Lodging API 需要在 GCP Console 中启用。OAuth 范围保持不变。
端点网址
可以通过 https://mybusinesslodging.googleapis.com/v1/{name=locations/{locationId}/lodging}
(而不是 https://mybusiness.googleapis.com/v4/accounts/{accountId}/locations/{locationId}
)使用 Lodging API。
LanguageSpoken
对象已更改,现在接受语言代码。了解详情。
现在,allUnits
和 someUnits
字段只是输出。
您无法再修改 allUnits
或 someUnits
字段。了解详情。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-11-28。
[null,null,["最后更新时间 (UTC):2024-11-28。"],[[["The Lodging API has been updated with a new endpoint URL (`https://mybusinesslodging.googleapis.com/v1/{name=locations/{locationId}/lodging}`) and requires enabling from the GCP Console."],["The `LanguageSpoken` object now uses language codes, and the `allUnits` and `someUnits` fields have become output-only, meaning they can no longer be edited."],["A new `Sustainability` object was introduced in v1.1 within the `Lodging` type, providing information about sustainability practices."],["The `SustainabilityCertifications` object has been deprecated in the latest version (v1.2), with further details available in the provided link."]]],[]]