palestine_sms_misr (unofficial)

Part of PalestineDevelopers

Lightweight SMS Misr gateway implementation in dart (unofficial).

License
Pub
Example

GitHub release
GitHub stars
GitHub forks


Table Of Contents


Features

  • SMS Misr Implementation for both
    • Message API
    • OTP API

Getting started

To start, import package

import 'package:palestine_sms_misr/palestine_sms_misr.dart';

Usage

Create an instance.

PalSMSMisr palSMSMisr = PalSMSMisr(
    userName: 'xxxxxxxx',
    password: 'xxxxxxxx',
    senderName: 'xxxxx',
    language: '2', // 1, 2
    otpToken: 'xxxxxx-xxxx-xxx-xxx-xxxxxx',
    otpSignature: 'xxxxxxxx',
);

Messages API

await palSMSMisr.sendMessage(
    phoneNumbers: 'xxxxxxxxxxx,xxxxxxxxxxx', // Egyptian Phone Number
    message: 'Dev Test',
);

OTP API

await palSMSMisr.sendOTP(
    phoneNumber: 'xxxxxxxxxxx', // Egyptian Phone Number
    code: '12xxx', // optional
);

GitHub

View Github