Client libraries

  • RBM client libraries simplify the creation of RBM agents using Node.js, C#, Python, or Java.

  • The libraries are open source and available in internet repositories for easy use.

  • Before getting started, you need to register an agent and install the required software for your chosen language.

  • Setup involves downloading and extracting a sample agent and configuring your RBM credentials.

  • Further learning resources include RBM agent best practices and samples.

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.