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:
- Register an agent.
Download and install required software:
Setup
Download the First Agent Sample.
Note: Sign in with your RBM Google Account to access download links.Extract the file on your local machine.
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.