telnyx_flutter 0.0.5+a telnyx_flutter: ^0.0.5+a copied to clipboard
Dart Package that helps using the Telnyx API services, Supports Telnyx Programmable SMS
example/telnyx_flutter_example.dart
import 'package:telnyx_flutter/telnyx_flutter.dart';
void main() {
final toNumber = '+972000000000';
final messageBody = 'Hello from Telnyx';
var telnyxFlutter = TelnyxFlutter(
telnyxNumber: '+___________',
authToken: 'KEY*_*',
messagingProfileId: '*-*-*-*-*'
);
telnyxFlutter.sendSMS(
toNumber: toNumber, messageBody: messageBody).then((value) {
print(value);
});
telnyxFlutter.sendSMSWithSenderID(
senderId: 'SENDER_ID', toNumber: toNumber, messageBody: messageBody).then((value) {
print(value);
});
telnyxFlutter.sendWhatsApp(
toNumber: toNumber, messageBody: messageBody).then((value) {
print(value);
});
}