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
- 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
Demo App | Sms inbox |
To use bulksmszw package, add it to your project pubspec.yaml
dependencies:
flutter:
sdk: flutter
bulksmszw: ^1.0.0
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>',
);
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();
}
- [✔] Send SMS
- [✔] Customized api response
- [❌] Schedule messages
- [❌] Validate phone numbers
Api changes are available on CHANGELOG
- features and pr and contributions are welcome.
- api docs for bulksmsweb at HTTP API INTEGRATION DOC
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.