请在关键端点停用之前更新您的 Google Business Profile API 集成。请查看弃用时间表和相关说明,以免在 2022 年 4 月之后出现中断。

My Business Q&A API

My Business Q&A API 允许发布针对特定商家信息的问题和答案。

服务:mybusinessqanda.googleapis.com

如需调用此服务,我们建议您使用 Google 提供的客户端库。如果您的应用需要使用您自己的库来调用此服务,请在发出 API 请求时使用以下信息。

发现文档

发现文档是用于说明和使用 REST API 的机器可读规范。它用于构建客户端库、IDE 插件以及与 Google API 交互的其他工具。一项服务可能会提供多个发现文档。此服务提供了以下发现文档:

服务端点

服务端点是指定 API 服务的网络地址的基本网址。一项服务可能有多个服务端点。此服务具有以下服务端点,下面的所有 URI 都与此服务端点相关:

  • https://mybusinessqanda.googleapis.com

REST 资源:v1.locations.questions

方法
create POST /v1/{parent=locations/*/questions}
为指定位置添加问题。
delete DELETE /v1/{name=locations/*/questions/*}
删除当前用户撰写的特定问题。
list GET /v1/{parent=locations/*/questions}
返回指定营业地点的分页问题列表及其部分回答。
patch PATCH /v1/{question.name=locations/*/questions/*}
更新当前用户撰写的特定问题。

REST 资源:v1.locations.questions.answers

方法
delete DELETE /v1/{name=locations/*/questions/*}/answers:delete
删除当前用户为某个问题撰写的答案。
list GET /v1/{parent=locations/*/questions/*}/answers
返回指定问题的分页答案列表。
upsert POST /v1/{parent=locations/*/questions/*}/answers:upsert
为用户指定的问题创建答案或更新现有答案。