Coder Social home page Coder Social logo

donnc / bulksmszw Goto Github PK

View Code? Open in Web Editor NEW
7.0 2.0 4.0 139 KB

bulksmszw port for bulksmszw-api python library. Send bulk sms using bulksmsweb services with ease with support for Zim numbers and sending sms to teams

Home Page: https://pub.dev/packages/bulksmszw

License: BSD 3-Clause "New" or "Revised" License

Dart 97.38% Kotlin 0.57% Swift 1.87% Objective-C 0.18%
flutter flutter-dart bulksms bulksmszw

bulksmszw's Introduction

A flutter or dart plugin for developers to use the bulksmsweb api services

Authentication details

  • register an account on bulksms website
  • if already have an account, login on bulksms web portal
  • Got to "My Account", then Click on "User Configuration", to obtain "Webservices token".
  • Use your webservices token as bulksmsWebKey and registered username as bulksmsWebName

Usage

Example

Screenshot

Demo App Sms inbox

To use bulksmszw package, add it to your project pubspec.yaml

dependencies:
  flutter:
    sdk: flutter

  bulksmszw: ^2.0.0-dev

How to use

First import the bulksmszw package in your dart file

import 'package:bulksmszw/bulksmszw.dart';

Create a BulkSmsZw() object passing in your api-key and api-username

final smsApi = BulkSmsZw(
      bulksmsWebKey: '<your-api-key>',
      bulksmsWebName: '<your-api-username>',
    );

Send (bulk) SMS

To send a message, pass your contacts in a list as a list string

List<String> contacts = [
    '263777777777',
    '#flutterDev',  // you can pass group names too
];

ApiResponse _response = await smsApi.send(
   message: 'Please be reminded that project deadline is today at 15:45pm',
  recipients: contacts,
);

// you can check response from ApiResponse -> _response
if(_response.statusresponse == SMSRESPONSE.SUCCESS)
{
    showSuccessToast();
}

Features

  • [✔] Send SMS
  • [✔] Customized api response
  • [❌] Schedule messages
  • [❌] Validate phone numbers

Api Changes

Api changes are available on CHANGELOG

Additionals

  • features and pr and contributions are welcome.
  • api docs for bulksmsweb at HTTP API INTEGRATION DOC
  • *unofficial bulksmsweb package

Getting Started

This project is a starting point for a Dart package, a library module containing code that can be shared easily across multiple Flutter or Dart projects.

For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

bulksmszw's People

Contributors

donnc avatar iamngoni avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

bulksmszw's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.