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 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2025-04-10 (حسب التوقيت العالمي المتفَّق عليه)"],[[["\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."]]