我们将于 2024 年 7 月 31 日逐步淘汰 Google Business Messages。点击
此处了解详情。
Business Messages API
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
服务:businessmessages.googleapis.com
如要调用此服务,我们建议您使用 Google 提供的示例。如果您的应用需要使用您自己的库来调用此服务,则在发出 API 请求时应使用以下信息。
发现文档
发现文档是用于说明和使用 REST API 的机器可读规范。它用于构建客户端库、IDE 插件以及与 Google API 交互的其他工具。一项服务可能会提供多个发现文档。此服务提供了以下发现文档:
服务端点
服务端点是指定 API 服务的网络地址的基本网址。一项服务可能有多个服务端点。此服务具有以下服务端点,下面的所有 URI 都与此服务端点相关:
https://businessmessages.googleapis.com
方法 |
create |
POST /v1/{parent=conversations/*}/events
在对话中创建活动。 |
方法 |
create |
POST /v1/{parent=conversations/*}/messages
将代理发送的消息发送给用户。 |
updateReceipt |
PATCH /v1/{receipt.name=conversations/*/messages/*/receipt}
向用户发送代理发送的消息的收据。 |
方法 |
create |
POST /v1/{parent=conversations/*}/surveys
在对话中创建客户满意度调查问卷。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-12-21。
[null,null,["最后更新时间 (UTC):2024-12-21。"],[[["\u003cp\u003eThe Business Messages API allows you to send and receive messages, create events, and manage customer satisfaction surveys within conversations.\u003c/p\u003e\n"],["\u003cp\u003eGoogle provides client libraries and samples to facilitate interaction with the API, although you can also use your own libraries.\u003c/p\u003e\n"],["\u003cp\u003eThe service endpoint for the API is \u003ccode\u003ehttps://businessmessages.googleapis.com\u003c/code\u003e, and all API requests should be relative to this endpoint.\u003c/p\u003e\n"],["\u003cp\u003eKey REST resources include conversations.events, conversations.messages, and conversations.surveys, offering functionalities like creating events, sending messages, and managing surveys.\u003c/p\u003e\n"],["\u003cp\u003eYou can find the Discovery Document at \u003ca href=\"https://businessmessages.googleapis.com/$discovery/rest?version=v1\"\u003ehttps://businessmessages.googleapis.com/$discovery/rest?version=v1\u003c/a\u003e for machine-readable specifications of the API.\u003c/p\u003e\n"]]],[],null,["# Business Messages API\n\nService: businessmessages.googleapis.com\n----------------------------------------\n\nTo call this service, we recommend that you use the Google-provided [samples](/business-communications/business-messages/resources/samples). If your application needs to use your own libraries to call this service, use the following information when you make the API requests.\n\n### Discovery document\n\nA [Discovery Document](https://developers.google.com/discovery/v1/reference/apis) is a machine-readable specification for describing and consuming REST APIs. It is used to build client libraries, IDE plugins, and other tools that interact with Google APIs. One service may provide multiple discovery documents. This service provides the following discovery document:\n\n- \u003chttps://businessmessages.googleapis.com/$discovery/rest?version=v1\u003e\n\n### Service endpoint\n\nA [service endpoint](https://cloud.google.com/apis/design/glossary#api_service_endpoint) is a base URL that specifies the network address of an API service. One service might have multiple service endpoints. This service has the following service endpoint and all URIs below are relative to this service endpoint:\n\n- `https://businessmessages.googleapis.com`\n\nREST Resource: [v1.conversations.events](/business-communications/business-messages/reference/rest/v1/conversations.events)\n---------------------------------------------------------------------------------------------------------------------------\n\n| Methods ||\n|----------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------|\n| [create](/business-communications/business-messages/reference/rest/v1/conversations.events/create) | `POST /v1/{parent=conversations/*}/events` Creates an event in a conversation. |\n\nREST Resource: [v1.conversations.messages](/business-communications/business-messages/reference/rest/v1/conversations.messages)\n-------------------------------------------------------------------------------------------------------------------------------\n\n| Methods ||\n|--------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------|\n| [create](/business-communications/business-messages/reference/rest/v1/conversations.messages/create) | `POST /v1/{parent=conversations/*}/messages` Sends a message from an agent to a user. |\n| [updateReceipt](/business-communications/business-messages/reference/rest/v1/conversations.messages/updateReceipt) | `PATCH /v1/{receipt.name=conversations/*/messages/*/receipt}` Sends a receipt for a message from an agent to a user. |\n\nREST Resource: [v1.conversations.surveys](/business-communications/business-messages/reference/rest/v1/conversations.surveys)\n-----------------------------------------------------------------------------------------------------------------------------\n\n| Methods ||\n|-----------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------|\n| [create](/business-communications/business-messages/reference/rest/v1/conversations.surveys/create) | `POST /v1/{parent=conversations/*}/surveys` Creates a customer satisfaction survey in a conversation. |"]]