new_releases Bản cập nhật: Kiểm tra
ghi chú phát hành để biết thông tin về các tính năng mới và bản cập nhật sản phẩm.
Thư viện ứng dụng
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.
Thư viện ứng dụng RBM giúp đơn giản hoá việc tạo tác nhân RBM bằng Node.js, C#,
Python hoặc Java. Các thư viện này được phát hành trong dự án nguồn mở của chúng tôi và được phát hành cho các kho lưu trữ trên Internet để bạn dễ dàng sử dụng trong mã của mình.
Node.js
Thêm phần phụ thuộc sau vào tệp package.json
:
"dependencies": {
"@google/rcsbusinessmessaging": "^1.0.7"
}
Kiểm tra kho lưu trữ npm để biết phiên bản mới nhất.
Nhập khi cần trong mã:
const rbmApiHelper = require('@google/rcsbusinessmessaging');
Java
Thêm phần phụ thuộc sau vào tệp pom.xml
:
<dependency>
<groupId>com.google.rbm</groupId>
<artifactId>rbm-api-helper</artifactId>
<version>1.0.0</version>
</dependency>
Kiểm tra kho lưu trữ Maven để biết phiên bản mới nhất.
Nhập khi cần trong mã:
import com.google.rbm.RbmApiHelper;
Điều kiện tiên quyết
Trước khi bắt đầu, bạn cần làm những việc sau:
Thiết lập
Tải Mẫu tác nhân đầu tiên xuống.
Lưu ý: Hãy đăng nhập bằng Tài khoản Google RBM của bạn để truy cập vào các đường liên kết tải xuống.
Giải nén tệp trên máy cục bộ.
Làm theo hướng dẫn trong tệp README để định cấu hình thông tin xác thực RBM.
Tìm hiểu thêm
Hãy xem các phương pháp hay nhất và mẫu của tác nhân RBM để tìm hiểu về nền tảng này và những gì nền tảng này có thể làm.
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: 2025-04-10 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2025-04-10 UTC."],[[["\u003cp\u003eRBM client libraries are available in Node.js, C#, Python, and Java to facilitate the creation of RBM agents.\u003c/p\u003e\n"],["\u003cp\u003eThese libraries can be easily integrated into your code by adding the appropriate dependency to your project's configuration file, such as \u003ccode\u003epackage.json\u003c/code\u003e for Node.js or \u003ccode\u003epom.xml\u003c/code\u003e for Java.\u003c/p\u003e\n"],["\u003cp\u003eBefore using the libraries, you need to register an agent and download/install the necessary software, such as Node.js, Java SDK, Python, or .NET SDK.\u003c/p\u003e\n"],["\u003cp\u003eThe process includes downloading a sample, extracting it, and configuring your RBM credentials according to the provided README instructions.\u003c/p\u003e\n"],["\u003cp\u003eThe libraries are located in the open-source project, with specific links available for the npm repository and the maven repository.\u003c/p\u003e\n"]]],[],null,["# Client libraries\n\nThe RBM client libraries simplify the creation of RBM agents using Node.js, C#,\nPython, or Java. The libraries are published in our\n[open source project](https://github.com/rcs-business-messaging/rbm-api-examples/)\nand released to internet repositories for easy use in your code. \n\n### Node.js\n\n\nAdd the following dependency to your `package.json` file: \n\n \"dependencies\": {\n \"@google/rcsbusinessmessaging\": \"^1.0.7\"\n }\n\nCheck the [npm repository](https://www.npmjs.com/package/@google/rcsbusinessmessaging)\nfor the latest version.\n\nImport where required in your code: \n\n const rbmApiHelper = require('@google/rcsbusinessmessaging');\n\n### Java\n\nAdd the following dependency to your `pom.xml` file: \n\n \u003cdependency\u003e\n \u003cgroupId\u003ecom.google.rbm\u003c/groupId\u003e\n \u003cartifactId\u003erbm-api-helper\u003c/artifactId\u003e\n \u003cversion\u003e1.0.0\u003c/version\u003e\n \u003c/dependency\u003e\n\nCheck the [Maven repository](https://central.sonatype.com/artifact/com.google.rbm/rcsbusinessmessaging)\nfor the latest version.\n\nImport where required in your code: \n\n import com.google.rbm.RbmApiHelper;\n\nPrerequisites\n-------------\n\nBefore you get started, you need to do the following things:\n\n- [Register](/business-communications/rcs-business-messaging/guides/build/agents) an agent.\n- Download and install required software:\n\n ### Node.js\n\n - [Node.js](https://nodejs.org/en/)\n\n ### Java\n\n - [Java 8 SDK](http://www.oracle.com/technetwork/java/javase/downloads/index.html)\n - [Maven 3.3.9](http://maven.apache.org) or later\n\n ### Python\n\n - [Python 3+](https://www.python.org/downloads/)\n - [virtualenv](https://pypi.org/project/virtualenv/)\n\n ### C#\n\n - [.NET SDK 2.1](https://dotnet.microsoft.com/download/dotnet-core/2.1) or later\n\nSetup\n-----\n\n1. Download the First Agent Sample.\n\n Note: [Sign in]() with your RBM Google Account to access download links.\n\n \u003cbr /\u003e\n\n2. Extract the file on your local machine.\n\n3. Follow the instructions in the README to configure your RBM credentials.\n\nLearn more\n----------\n\nTake a look at the RBM agent [best practices](/business-communications/rcs-business-messaging/guides/learn/best-practices)\nand [samples](/business-communications/rcs-business-messaging/samples) to get\nto know the platform and what it can do."]]