Java SDK for use with the Bandwidth Voice and Messaging APIs
Deprecation Notice
This project is deprecated. Please go to https://github.com/Bandwidth/java-sdk
Java SDK for Bandwidth’s App Platform
[More Coming Soon]
Bandwidth Java SDK API is now using Maven. At present the jars are available from a public maven repository.
Use the following dependency in your project:
<dependency>
<groupId>com.bandwidth.sdk</groupId>
<artifactId>bandwidth-java-sdk</artifactId>
<version>1.10</version>
<scope>compile</scope>
</dependency>
If you want to compile it yourself, here’s how:
$ git clone git@github.com:bandwidthcom/java-bandwidth.git
$ cd java-bandwidth.git
$ mvn install
There are 3 ways to set these credentials:
-Dcom.bandwidth.userId=my_User_Id
-Dcom.bandwidth.apiToken=my_Api_Token
-Dcom.bandwidth.apiSecret=my_Api_Secret
$ export BANDWIDTH_USER_ID=my_User_Id
$ export BANDWIDTH_API_TOKEN=my_Api_Token
$ export BANDWIDTH_API_SECRET=my_Api_Secret
BandwidthClient.getInstance().setCredentials(my_User_Id, my_Api_Token, my_Api_Secret)
Notice: if credentials are not set explicitly, the sdk will first look for VM properties.
If those are not present, it will look for environments vars.
To override VM properties and env vars, use client’s method as described on 3th option.
Please open an issue in this repository and we’ll handle it directly. If you have any questions please contact us at openapi@bandwidth.com.