Skip to content

luckycreationsindia/msg91

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

32 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ’ฌ msg91 - msg91.com Official API Wrapper (Unofficial Dart Package)

API for msg91 - 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

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

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

About

๐Ÿ’ฌ msg91 - msg91.com Official API Wrapper (Unofficial Dart Package)

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages