Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/donnc/bulksmszw
bulksmszw port for bulksmszw-api python library. Send bulk sms using bulksmsweb services with ease with support for Zim numbers and sending sms to teams
https://github.com/donnc/bulksmszw
bulksms bulksmszw flutter flutter-dart
Last synced: about 1 month ago
JSON representation
bulksmszw port for bulksmszw-api python library. Send bulk sms using bulksmsweb services with ease with support for Zim numbers and sending sms to teams
- Host: GitHub
- URL: https://github.com/donnc/bulksmszw
- Owner: DonnC
- License: bsd-3-clause
- Created: 2020-12-09T11:19:55.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2021-07-09T07:10:07.000Z (over 3 years ago)
- Last Synced: 2023-08-20T21:29:55.986Z (over 1 year ago)
- Topics: bulksms, bulksmszw, flutter, flutter-dart
- Language: Dart
- Homepage: https://pub.dev/packages/bulksmszw
- Size: 136 KB
- Stars: 7
- Watchers: 2
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# [bulksmszw](http://www.bulksmsweb.com/)
A flutter or dart plugin for developers to use the `bulksmsweb` api services
* bulksmszw api, a port for [bulksmszw-api python library](https://github.com/DonnC/BulkSmsZW-Api). Send bulk sms using bulksmsweb services
## Authentication details
- register an account on [bulksms website](http://www.bulksmsweb.com/)
- if already have an account, login on [bulksms web portal](http://portal.bulksmsweb.com)
- Got to "My Account", then Click on "User Configuration", to obtain "Webservices token".
- Use your `webservices token` as `bulksmsWebKey` and registered `username` as `bulksmsWebName`## Usage
[Example](https://github.com/DonnC/bulksmszw/tree/main/example/app)# Screenshot
Demo App
Sms inbox
To use bulksmszw package, add it to your project `pubspec.yaml`
```yaml
dependencies:
flutter:
sdk: flutterbulksmszw: ^2.0.0-dev
```## How to use
First import the `bulksmszw` package in your dart file
```dart
import 'package:bulksmszw/bulksmszw.dart';
```Create a `BulkSmsZw()` object passing in your api-key and api-username
```dart
final smsApi = BulkSmsZw(
bulksmsWebKey: '',
bulksmsWebName: '',
);
```### Send (bulk) SMS
To send a message, pass your `contacts` in a list as a list string
```dart
List 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](CHANGELOG.md)### Additionals
- features and pr and contributions are welcome.
- api docs for bulksmsweb at [HTTP API INTEGRATION DOC](http://portal.bulksmsweb.com/downloads/BulkSMS-API.pdf)
- *unofficial bulksmsweb package## Getting Started
This project is a starting point for a Dart
[package](https://flutter.dev/developing-packages/),
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](https://flutter.dev/docs), which offers tutorials,
samples, guidance on mobile development, and a full API reference.