https://github.com/codekeyz/nalo-sms-java
UnOfficial Java SDK for developers to interact with the Nalo SMS REST API.
https://github.com/codekeyz/nalo-sms-java
android java library nalo-sms nalo-solutions sdk sms
Last synced: 2 months ago
JSON representation
UnOfficial Java SDK for developers to interact with the Nalo SMS REST API.
- Host: GitHub
- URL: https://github.com/codekeyz/nalo-sms-java
- Owner: codekeyz
- License: mit
- Created: 2019-04-06T02:15:43.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-04-11T09:28:48.000Z (almost 7 years ago)
- Last Synced: 2024-12-28T16:35:21.484Z (about 1 year ago)
- Topics: android, java, library, nalo-sms, nalo-solutions, sdk, sms
- Language: Java
- Homepage: https://sms.nalosolutions.com/nalosms/login.php
- Size: 134 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Nalo SMS-API JAVA SDK
## **Overview**
This is an open source JAVA SDK that allows you to access the Nalo [REST SMS API](http://nalosolutions.com/NALO%20SMS%20HTTp%20Api_current.pdf) from your application. You need to create a Nalo account [here](https://sms.nalosolutions.com/nalosms/signup.php/) in order to use this API.
## Using NaloSMS Library in your application
Do not forget to add internet permission in manifest if already not present
```xml
```
### Usage
```java
import com.nalo.nalosms.NaloSMS;
// Creating an Instance of NaloSMS using the SMSBuilder
NaloSMS nalosms = new NaloSMS.SMSBuilder()
.withAuthCred("your-username", "!@msweet")
.setType(NaloSMS.Type.FLASH_MESSAGE_ISO_88559_1)
.setMessage("Hey Geek, am Precious Keyz")
.setSource("Tampico")
.setDestination("+23324XX61XXX", "023XXXAAA", "0554XXX83X")
.withDeliveryReport(true)
.build();
nalosms.send(new NaloSMS.Callback() {
@Override
public void onResult(String result) {
// result
}
@Override
public void onError(Throwable error) {
// catch error here
}
});
```