Giter Club home page Giter Club logo

twilio_flutter's Introduction

Twilio Flutter

A Flutter package for both android and iOS which helps developers with Twilio API services.

Features

  • Send SMS programmatically;
  • Get all SMS related to a Twilio account;
  • Get more info on each SMS sent from a Twilio account;
  • Send WhatsApp messages programmatically;

Getting Started

Check out our comprehensive Example provided with this plugin.

To use this package :

  • add the dependency to your pubspec.yaml file.
dependencies:
  flutter:
    sdk: flutter
  twilio_flutter: ^0.0.9

How to use

Create a new Object

TwilioFlutter twilioFlutter; 

Initialize with values

twilioFlutter = TwilioFlutter(
    accountSid : '*************************', // replace *** with Account SID
    authToken : 'xxxxxxxxxxxxxxxxxx',  // replace xxx with Auth Token
    twilioNumber : '+...............'  // replace .... with Twilio Number
    );

Send SMS

twilioFlutter.sendSMS(
   toNumber : '+................', 
   messageBody : 'hello world'); 
   //Use sendSMS with the recipient number and message body.

View SMS List

SentSmsData data= await twilioFlutter.getSmsList({String pageSize}); //Returns list of SMS , pageSize defaults to 20

View Single SMS

Message data= await twilioFlutter.getSMS(String messageSID); //Use message sid from the individual messages.

Change Twilio Number

twilioFlutter.changeTwilioNumber('+.........'); // To change the twilio number
Send WhatsApp Message (Experimental)
twilioFlutter.sendWhatsApp(toNumber : '+................',
 messageBody : 'hello world');

Supported Platforms

  • Android
  • iOS
  • Web
  • MacOs
  • Windows
  • Linux

Useful articles

Issues

Please file any issues, bugs or feature requests as an issue on our GitHub page. Commercial support is available, you can contact us at [email protected].

Want to contribute

If you would like to contribute to the plugin (e.g. by improving the documentation, solving a bug or adding a cool new feature), please carefully review our contribution guide and send us your pull request.

Author

This Twilio Flutter plugin for Flutter is developed by Adarsh Balachandran.

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.