The BBN SMS Gateway Java SDK for HTTP API (version 1.0) is the first Java port to the BBN SMS Gateway HTTP API provided by a Contributor, Victor Igbokwe. Java developers can now interface with the BBN SMS Gateway API with ease - not having to write long lines of code to do same from project to project. Java developers can easily adopt the library into any project that needs to send sms using the BBN SMS Gateway.
To get started with the BBN SMS Gateway Java SDK for HTTP API Integration:
There's little need for configuration. Most of the common configuration is already provided in bbn/api/sms/bbn.properties; however, there's a small matter of authentication username and password. This can be provided in your own .properties file:
For example, create the file "bbn.properties" in the root of your application's classpath (note: it must be called bbn.properties) add these lines to the file.
Then your code can go like this:
This will check the credit balance for the user whose user details you provided in your config file (bbn.properties). Another option is to provide the authentication username and password manually for every operation.
e.g:
The source code for how to use the API is available as tests in the tests package; however, here's a quick look at how to use the API.
For integration support, send an email to Victor Igbokwe: [email protected]