bulksmszw 1.0.0 bulksmszw: ^1.0.0 copied to clipboard
bulksmszw api, a port for bulksmszw-api python library. Send bulk sms using bulksmsweb services
bulksmszw #
A flutter or dart plugin for developers to use the bulksmsweb
api services
- bulksmszw api, a port for bulksmszw-api python library. Send bulk sms using bulksmsweb services
Authentication details #
- register an account on bulksms website
- if already have an account, login on bulksms web portal
- Got to "My Account", then Click on "User Configuration", to obtain "Webservices token".
- Use your
webservices token
asbulksmsWebKey
and registeredusername
asbulksmsWebName
Usage #
Screenshot #
Demo App | Sms inbox |
To use bulksmszw package, add it to your project pubspec.yaml
dependencies:
flutter:
sdk: flutter
bulksmszw: ^1.0.0
How to use #
First import the bulksmszw
package in your dart file
import 'package:bulksmszw/bulksmszw.dart';
Create a BulkSmsZw()
object passing in your api-key and api-username
final smsApi = BulkSmsZw(
bulksmsWebKey: '<your-api-key>',
bulksmsWebName: '<your-api-username>',
);
Send (bulk) SMS #
To send a message, pass your contacts
in a list as a list string
List<String> contacts = [
'263777777777',
'#flutterDev', // you can pass group names too
];
ApiResponse _response = await smsApi.send(
message: 'Please be reminded that project deadline is today at 15:45pm',
recipients: contacts,
);
// you can check response from ApiResponse -> _response
if(_response.statusresponse == SMSRESPONSE.SUCCESS)
{
showSuccessToast();
}
Features #
- [✔] Send SMS
- [✔] Customized api response
- [❌] Schedule messages
- [❌] Validate phone numbers
Api Changes #
Api changes are available on CHANGELOG
Additionals #
- features and pr and contributions are welcome.
- api docs for bulksmsweb at HTTP API INTEGRATION DOC
Getting Started #
This project is a starting point for a Dart package, a library module containing code that can be shared easily across multiple Flutter or Dart projects.
For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.