0 purchases
telnyx flutter
Telnyx Flutter #
A Flutter (dart) package for helping developers using the Telnyx API services
Features #
Send SMS programmatically
Send WhatsApp messages programmatically
upcoming:
Get all SMS related to a Telnyx account
Get more info on each SMS sent from a Telnyx account
Getting Started #
To use this package :
add the dependency to your pubspec.yaml file.
dependencies:
flutter:
sdk: flutter
telnyx_flutter: ^0.0.5
copied to clipboard
How to use #
Create a new client object
var telnyxFlutter = TelnyxFlutter(
telnyxNumber : '[YOUR_TELNYX_NUMBER]', // e.g: +...............
authToken : '[YOUR_TELNYX_API_KEY]', // e.g: KEY****
messagingProfileId : '[YOUR_MESSAGING_PROFILE_ID]', // e.g: aaaaaaaa-bbbb-cccc-dddd-111111111111
whatappUserId: ['WHATSUP_USER_ID'] // (optional)
);
copied to clipboard
Send SMS
telnyxFlutter.sendSMS(
toNumber : '+................',
messageBody : 'your message here',
);
copied to clipboard
Send SMS (Using Alphanumeric SenderID)
// for example using TELNYX
telnyxFlutter.sendSMS(
senderId: 'TELNYX'
toNumber : '+................',
messageBody : 'your message here',
);
copied to clipboard
Send Whatsapp SMS (to individual number)
telnyxFlutter.sendWhatsApp(
toNumber : '+................',
messageBody : 'your WA message here',
);
copied to clipboard
Author #
This Telnyx Flutter Package is developed by Kfir Matityahu.
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.