Chúng tôi sẽ ngừng cung cấp ứng dụng Google Business Messages từ ngày 31 tháng 7 năm 2024. Đọc thêm
tại đây.
Business Messages API
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Dịch vụ: businessmessages.googleapis.com
Để gọi dịch vụ này, bạn nên sử dụng mẫu do Google cung cấp. Nếu ứng dụng của bạn cần sử dụng thư viện của riêng mình để gọi dịch vụ này, hãy sử dụng thông tin sau khi bạn tạo yêu cầu API.
Tài liệu khám phá
Tài liệu khám phá là một bản đặc tả có thể đọc được bằng máy để mô tả và sử dụng các API REST. Công cụ này dùng để tạo thư viện ứng dụng, trình bổ trợ IDE và các công cụ khác tương tác với API của Google. Một dịch vụ có thể cung cấp nhiều tài liệu khám phá. Dịch vụ này cung cấp tài liệu khám phá sau:
Điểm cuối dịch vụ
Điểm cuối của dịch vụ là một URL cơ sở chỉ định địa chỉ mạng của một dịch vụ API. Một dịch vụ có thể có nhiều điểm cuối dịch vụ. Dịch vụ này có điểm cuối dịch vụ sau và tất cả URI dưới đây đều liên quan đến điểm cuối dịch vụ này:
https://businessmessages.googleapis.com
Phương thức |
create |
POST /v1/{parent=conversations/*}/events
Tạo một sự kiện trong cuộc trò chuyện. |
Phương thức |
create |
POST /v1/{parent=conversations/*}/messages
Gửi tin nhắn từ nhân viên hỗ trợ đến người dùng. |
updateReceipt |
PATCH /v1/{receipt.name=conversations/*/messages/*/receipt}
Gửi biên nhận cho tin nhắn của nhân viên hỗ trợ cho người dùng. |
Phương thức |
create |
POST /v1/{parent=conversations/*}/surveys
Tạo bản khảo sát về mức độ hài lòng của khách hàng trong một cuộc trò chuyện. |
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2024-12-21 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2024-12-21 UTC."],[[["\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. |"]]