QuickSms library will help you achieve the following:
- Send SMS easily.
- Check Account Balance.
- Get Delivery Report.
Simply register at quicksms1.com and you are good to go!
To run the example project, clone the repo, and run pod install from the Example directory first.
QuickSms is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'QuickSms'Import QuickSms
import QuickSmsInitialize QuickSms with your Username and Password
let quickSms = QuickSms.configure(withUsername: "YOUR_EMAIL", password: "YOUR_PASSWORD")Create an Sms Instance
var sms = Sms()
sms.sender = "Tester"
sms.message = "This is just a test"
sms.recipient = "08000000000"Passing the sms instance as an argument
quickSms.sendSms(sms: sms).addOnCompleteListener(handler: { (res, err) in
if res != nil {
print(res!.totalNumberOfSmsCreditsUsed)
print(res!.messageId)
}
if err != nil {
print(err!.message)
}
})var sms = Sms()
//...
//...
sms.recipient = "08000000000,08000000001,08000000002"var sms = Sms()
//...
//...
sms.supportDnd = truevar sms = Sms()
//...
//...
sms.schedule = "2018-10-01 12:30:00"quickSms.getAccountBalance().addOnCompleteListener(handler: { (res, err) in
if res != nil {
print(res!.balance)
}
if err != nil {
print(err!.message)
}
})Passing messageId as argument
quickSms.getDeliveryReport(messageId: "54765").addOnCompleteListener(handler: { (res, err) in
if res != nil {
print(res!.status)
}
if err != nil {
print(err!.message)
}
})If this library helps you in anyway, show your love ❤️ by putting a ⭐ on this project ✌️; or you can buy me a coffee 
Emmanuel Kehinde, [email protected]
QuickSms is available under the MIT license. See the LICENSE file for more info.