https://github.com/luckycreationsindia/msg91
💬 msg91 - msg91.com Official API Wrapper (Unofficial Dart Package)
https://github.com/luckycreationsindia/msg91
dart flutter msg91 sms sms-api
Last synced: 6 days ago
JSON representation
💬 msg91 - msg91.com Official API Wrapper (Unofficial Dart Package)
- Host: GitHub
- URL: https://github.com/luckycreationsindia/msg91
- Owner: luckycreationsindia
- License: mit
- Created: 2023-08-19T20:17:46.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-12-26T10:59:27.000Z (about 1 year ago)
- Last Synced: 2026-01-18T04:23:33.575Z (about 1 month ago)
- Topics: dart, flutter, msg91, sms, sms-api
- Language: Dart
- Homepage: https://pub.dev/packages/msg91
- Size: 437 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# 💬 msg91 - msg91.com Official API Wrapper (Unofficial Dart Package)
API for [msg91](https://msg91.com) - Secure and robust APIs for SMS, Email, Voice, Authentication and more
## Features
This package provides functionality to send sms via msg91 API with ease
## Getting started
Just install the package and check example for usage
## Usage
### Send Message
```dart
import 'package:msg91/msg91.dart';
final msg91 = Msg91().initialize(authKey: "AUTH_KEY");
final sms = msg91.getSMS();
sms.send(
flowId: "templateId",
recipient: SmsRecipient(
mobile: "mobile",
key: {"name": "John Doe"},
),
options: SmsOptions(
senderId: "senderId",
shortURL: false,
),
).then((value) {
print("Response: $value");
}).catchError((err) {
print("Err Response: $err");
});
```
### Get Account Balance
```dart
import 'package:msg91/msg91.dart';
final msg91 = Msg91().initialize(authKey: "AUTH_KEY");
final account = msg91.getAccount();
account.checkBalance(
routeType: RouteType.wallet,
).then((value) {
print("Wallet Balance: $value");
}).catchError((err) {
print("Err Response: $err");
});
```
## 📝 Feature List Roadmap
| # | Feature | Status |
|---|-----------------------|--------|
| 1 | Send SMS | 🟢 |
| 2 | Send OTP | 🟢 |
| 3 | Resend OTP | 🟢 |
| 4 | Verify OTP | 🟢 |
| 5 | Launch Campaign | 🔴 |
| 6 | Check Balance | 🟢 |
| 7 | Add SMS Template | 🟢 |
| 8 | Send WhatsApp Message | 🔴 |
#### Much more features will be added as the project grows and it'll be really helpful if anyone can contribute to this package.
🔴 Pending
🟡 In Progress
🟢 Complete