A Flutter package for both android and iOS which helps developers with Twilio API services.
- Send SMS programmatically;
- Get all SMS related to a Twilio account;
To use this package :
- add the dependency to your pubspec.yaml file.
dependencies:
flutter:
sdk: flutter
twilio: ^0.0.1
Twilio twilio = Twilio(
accountSid : '*************************', // replace *** with Account SID
authToken : 'xxxxxxxxxxxxxxxxxx', // replace xxx with Auth Token
twilioNumber : '+...............' // replace .... with Twilio Number
);
twilio.messages
twilio.credential
twilio.messages.sendMessage(String toNumber, [String message = ""]);
//Use sendMessage with the recipient number and message body.
//Returns list of SMS
//pageSize defaults to 10
//Filter out numbers also
MessagesData messagesData = await twilio.getMessageList(
{int pageSize = 10, String? toNumber, String? fromNumber});
twilio.credential.changeNumber('+.........'); // To change the twilio number
- Android
- iOS
- Web
- MacOs
- Windows
- Linux
Please file any issues, bugs or feature requests as an issue on our GitHub page. Commercial support is available, you can contact us via mail.
If you would like to contribute to the plugin (e.g. by improving the documentation, solving a bug or adding a cool new feature), Send us your pull request.
This Twilio package for Flutter is developed by Coderthemes Design LLP.