palestine_sms_misr 0.0.9 icon indicating copy to clipboard operation
palestine_sms_misr: ^0.0.9 copied to clipboard

Lightweight SMS Misr gateway implementation in dart (unofficial).

example/palestine_sms_misr_example.dart

import 'package:palestine_sms_misr/palestine_sms_misr.dart';

Future<void> main() async {
  final PalSMSMisr palSMSMisr = PalSMSMisr(
    userName: 'xxxxxxxx',
    password: 'xxxxxxxx',
    senderName: 'xxxxx',
    language: '2', // 1, 2
    otpToken: 'xxxxxx-xxxx-xxx-xxx-xxxxxx',
    otpSignature: 'xxxxxxxx',
  );

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

  await palSMSMisr.sendOTP(
    phoneNumber: 'xxxxxxxxxxx', // Egyptian Phone Number
  );
}
7
likes
140
pub points
20%
popularity

Publisher

verified publisher iconmsayed.net

Lightweight SMS Misr gateway implementation in dart (unofficial).

Repository (GitHub)

Documentation

API reference

License

Icon for licenses.BSD-3-Clause (LICENSE)

Dependencies

http

More

Packages that depend on palestine_sms_misr