twilio_flutter 0.2.0 copy "twilio_flutter: ^0.2.0" to clipboard
twilio_flutter: ^0.2.0 copied to clipboard

A Package that helps with twilio API. Supports Twilio Programmable SMS.

Twilio Flutter #

A Dart package for both android and iOS which helps developers with Twilio API services. This Dart Package can be integrated into any Flutter application to make use of Twilio API.

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;
  • Send Scheduled messages;

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.2.0

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
messagingServiceSid:'$
$
$
$
'
, // optional replace $$ with messaging service sid, required for features like scheduled sms
);

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
twilioFlutter.sendWhatsApp
(
toNumber : '+................',
messageBody : 'hello world');
Send Scheduled SMS Message
twilioFlutter.sendScheduledSms
(
toNumber : '+................',
messageBody : 'hello world',
sendAt
    :
'
2024-02-18T16:
18
:
55
Z
'
);

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.

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.

104
likes
0
pub points
94%
popularity

Publisher

unverified uploader

A Package that helps with twilio API. Supports Twilio Programmable SMS.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

get_it, http, logging

More

Packages that depend on twilio_flutter