new_releases 更新: 新機能とサービスの更新については、
リリースノートをご覧ください。
クライアント ライブラリ
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
RBM クライアント ライブラリを使用すると、Node.js、C#、Python、Java で RBM エージェントを簡単に作成できます。ライブラリは オープンソース プロジェクトで公開され、インターネット リポジトリにリリースされているため、コードで簡単に使用できます。
Node.js
package.json
ファイルに次の依存関係を追加します。
"dependencies": {
"@google/rcsbusinessmessaging": "^1.0.7"
}
npm リポジトリで最新バージョンを確認します。
コードで必要な場所にインポートします。
const rbmApiHelper = require('@google/rcsbusinessmessaging');
Java
pom.xml
ファイルに次の依存関係を追加します。
<dependency>
<groupId>com.google.rbm</groupId>
<artifactId>rbm-api-helper</artifactId>
<version>1.0.0</version>
</dependency>
最新バージョンについては、Maven リポジトリをご覧ください。
コードで必要な場所にインポートします。
import com.google.rbm.RbmApiHelper;
前提条件
始める前に、次の作業を行う必要があります。
セットアップ
First Agent サンプルをダウンロードします。
注: ダウンロード リンクにアクセスするには、RBM Google アカウントでログインしてください。
ローカルマシンでファイルを展開します。
README の手順に沿って、RBM 認証情報を構成します。
その他の情報
RBM エージェントのベスト プラクティスとサンプルを確認して、プラットフォームとその機能について学びましょう。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-04-10 UTC。
[null,null,["最終更新日 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."]]