new_releases עדכונים: בדקו את
נתוני הגרסה כדי לגלות תכונות חדשות ועדכוני מוצרים.
ספריות לקוח
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
ספריות הלקוח של RBM מפשטות את היצירה של סוכני RBM באמצעות Node.js, C#, Python או Java. הספריות מתפרסמות בפרויקט הקוד הפתוח שלנו ומשוחררות למאגרים באינטרנט כדי שתוכלו להשתמש בהן בקלות בקוד שלכם.
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;
דרישות מוקדמות
לפני שמתחילים, צריך לבצע את הפעולות הבאות:
הגדרה
מורידים את הדוגמה הראשונה של הסוכן.
הערה: כדי לגשת לקישורי ההורדה, עליכם להיכנס באמצעות חשבון Google שלכם ב-RBM.
מחלצים את הקובץ במחשב המקומי.
פועלים לפי ההוראות במסמך README כדי להגדיר את פרטי הכניסה ל-RBM.
מידע נוסף
כדאי לעיין בשיטות המומלצות ובדוגמאות של סוכן RBM כדי להכיר את הפלטפורמה ואת היכולות שלה.
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 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."]]