Client libraries

  • RBM client libraries are available in Node.js, C#, Python, and Java to facilitate the creation of RBM agents.

  • These libraries can be easily integrated into your code by adding the appropriate dependency to your project's configuration file, such as package.json for Node.js or pom.xml for Java.

  • Before 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.

  • The process includes downloading a sample, extracting it, and configuring your RBM credentials according to the provided README instructions.

  • The libraries are located in the open-source project, with specific links available for the npm repository and the maven repository.

The RBM client libraries simplify the creation of RBM agents using Node.js, C#, Python, or Java. The libraries are published in our open source project and released to internet repositories for easy use in your code.

Node.js

Add the following dependency to your package.json file:

"dependencies": {
  "@google/rcsbusinessmessaging": "^1.0.7"
}

Check the npm repository for the latest version.

Import where required in your code:

const rbmApiHelper = require('@google/rcsbusinessmessaging');

Java

Add the following dependency to your pom.xml file:

<dependency>
  <groupId>com.google.rbm</groupId>
  <artifactId>rbm-api-helper</artifactId>
  <version>1.0.0</version>
</dependency>

Check the Maven repository for the latest version.

Import where required in your code:

import com.google.rbm.RbmApiHelper;

Prerequisites

Before you get started, you need to do the following things:

Setup

  1. Download the First Agent Sample.

    Note: Sign in with your RBM Google Account to access download links.

  2. Extract the file on your local machine.

  3. Follow the instructions in the README to configure your RBM credentials.

Learn more

Take a look at the RBM agent best practices and samples to get to know the platform and what it can do.