क्लाइंट लाइब्रेरी
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
आरबीएम क्लाइंट लाइब्रेरी, 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 repository पर जाएं.
अपने कोड में ज़रूरी जगहों पर इंपोर्ट करें:
import com.google.rbm.RbmApiHelper;
ज़रूरी शर्तें
शुरू करने से पहले, आपको ये काम करने होंगे:
सेटअप
पहला एजेंट सैंपल डाउनलोड करें.
ध्यान दें: डाउनलोड करने के लिंक ऐक्सेस करने के लिए, अपने RBM Google खाते से साइन इन करें.
फ़ाइल को अपने कंप्यूटर पर निकालें.
अपने RBM क्रेडेंशियल कॉन्फ़िगर करने के लिए, 'जानकारी' सेक्शन में दिए गए निर्देशों का पालन करें.
ज़्यादा जानें
इस प्लैटफ़ॉर्म के बारे में जानने और यह जानने के लिए कि यह क्या-क्या कर सकता है, RBM एजेंट के सबसे सही तरीके और सैंपल देखें.
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 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."]]