mambo_sms_service 1.0.0 copy "mambo_sms_service: ^1.0.0" to clipboard
mambo_sms_service: ^1.0.0 copied to clipboard

A Flutter package for sending bulk SMS, single SMS, and checking SMS balance using an API with authentication.

example/main.dart

import 'package:mambo_sms_service/mambo_sms_service.dart';

void main() async {
  final String apiUrl = 'https://mambosms.co.tz/api/v1/login';

  AuthService authService = AuthService(apiUrl);
  SmsService smsService = SmsService(apiUrl, authService);

  try {
    // Login
    String? token = await authService.login("0713268534", "password123");
    print("Login successful, Token: $token");

    // Send SMS
    await smsService.sendSingleSms("0712345678", "Hello from Flutter!");

    // Send Bulk SMS
    await smsService.sendBulkSms("Bulk SMS test");

    // Check Balance
    int balance = await smsService.getBalance();
    print("SMS Balance: $balance");

  } catch (e) {
    print("Error: $e");
  }
}
2
likes
120
points
22
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter package for sending bulk SMS, single SMS, and checking SMS balance using an API with authentication.

Repository (GitHub)
View/report issues

Topics

#sms #bulk-sms #messaging #authentication #api-integration

Documentation

API reference

License

unknown (license)

Dependencies

flutter, http, shared_preferences

More

Packages that depend on mambo_sms_service