free_mobile 7.0.0 free_mobile: ^7.0.0 copied to clipboard
Send SMS messages to your Free Mobile device. A simple and free way to monitor your applications using a Free Mobile account.
import 'package:free_mobile/free_mobile.dart';
/// Sends an SMS notification.
Future<void> main() async {
try {
final client = Client('your account identifier', 'your API key');
// For example: Client('12345678', 'a9BkVohJun4MAf')
await client.sendMessage('Hello World!');
print('The message was sent successfully');
}
on ClientException catch (err) {
print('An error occurred: ${err.message}');
print('From: ${err.uri}');
}
}