appstitch_twilio

Last updated:

0 purchases

appstitch_twilio Image
appstitch_twilio Images
Add to Cart

Description:

appstitch twilio

Appstitch Twilio #
Serverless Twilio Integrations for Appstitch
Platforms #

iOS
Android
Web


Usage #
Send Message #

void sendMessage() async {
final options = MessageOptions(
from: "+1234567890",
to: "+10987654321",
body: "My First Twilio Message",
);


final result = await twilioClient
.sendMessage(options);

if (result.success!) {
// Success
} else {
// handle error
}
}
copied to clipboard
Send Message #

void makeCall() async {
final options = CallOptions(
from: "+1234567890",
to: "+10987654321",
url: "http://demo.twilio.com/docs/voice.xml",
);


final result = await twilioClient
.makeCall(options);

if (result.success!) {
// Success
} else {
// handle error
}
}
copied to clipboard
Install #
appstitch_core: ^2.0.2
appstitch_twilio: ^1.0.0
copied to clipboard
Initialize #
import 'package:appstitch_core/options.dart';
import 'package:appstitch_core/core.dart';

Core core = Core();
Twilio twilioClient = Twilio();

@override
void initState() {
super.initState();

final options = Options(appstitchKey, clientID: clientID);
core.initialize(options);

}
copied to clipboard

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.