twilio_flutter 0.0.1
twilio_flutter: ^0.0.1 copied to clipboard
A Package that helps with twilio API.
Twilio_Flutter #
A Flutter package for both android and iOS which helps developers with Twilio API services.
Usage #
To use this package :
- add the dependency to your pubspec.yaml file.
dependencies:
flutter:
sdk: flutter
twilio_flutter:
How to use #
TwilioFlutter twilioFlutter; // Create a new Object
@override
void initState() { // Initialize with values
twilioFlutter = TwilioFlutter(
accountSid: '*************************', // replace *** with Account SID
authToken: 'xxxxxxxxxxxxxxxxxx', // replace xxx with Auth Token
twilioNumber: '+...............' // replace .... with Twilio Number
);
super.initState();
}
twilioFlutter.sendSMS(
toNumber: '+................', messageBody : 'hello world'); //Use sendSMS with the recipient number and message body.
twilioFlutter.changeTwilioNumber('+.........'); // To change the twilio number
Features #
[x] Sms [ ] Call [ ] WhatsApp
More features will get added soon. Contributions are also welcome.
Pull Requests #
Pull requests and contributions highly encouraged .Here are some basic rules to follow to ensure timely addition of your request:
- Match coding style (braces, spacing, etc.) This is best achieved using
Reformat Code
feature of Android StudioCMD
+Option
+L
on Mac andCTRL
+ALT
+L
on Linux + Windows . - If its a feature, bugfix, or anything please only change code to what you specify.
- Please keep PR titles easy to read and descriptive of changes, this will make them easier to merge :)
- Pull requests must be made against
develop
branch. Any other branch (unless specified by the maintainers) will get rejected. - Check for existing issues first, before filing an issue.
- Make sure you follow the set standard as all other projects in this repo do
- Have fun!
Getting Started #
For help getting started with Flutter, view our online documentation.
For help on editing package code, view the documentation.