Q&A API

更新日志

v1:2024 年 2 月 12 日

name 字段将更改为 locations.questionslocations.questions.answers

注意,自 2024-02-12开始,包含问题答案原 ID 的 name 字段将替换为新的 ID。 如果您将原 ID 用于问题或答案,API 将在请求的响应对象中返回新的 ID。

v1:2023 年 11 月 13 日

问题数量超过 50 个的商家的 locations.questions.list

我们对 locations.questions.listorderBy 查询参数设有一个已知的限制,当问题数量超过 50 个时,该参数无法使用 upvoteCount 顺序对商家创建的问题正确进行排序。

v1:2021 年 11 月 18 日

API 权限

Q&A API 将需要从 GCP 控制台加以启用。OAuth 范围保持不变。

端点网址

可以通过 https://mybusinessqanda.googleapis.com/v1/locations/{locationId}/questions(而不是 https://mybusiness.googleapis.com/v4/accounts/{accountId}/locations/{locationId}/questions)使用 Questions 端点。

可以通过 https://mybusinessqanda.googleapis.com/v1/locations/{locationId}/questions/{questionId}/answers(而不是 https://mybusiness.googleapis.com/v4/accounts/{accountId}/locations/{locationId}/questions/{questionId}/answers)使用 Answers 端点。