telnyx_flutter 0.0.5+a copy "telnyx_flutter: ^0.0.5+a" to clipboard
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);
  });



}
2
likes
140
points
5
downloads

Publisher

verified publishermatiapps.com

Weekly Downloads

Dart Package that helps using the Telnyx API services, Supports Telnyx Programmable SMS

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

http

More

Packages that depend on telnyx_flutter