mautic_api 1.0.4 mautic_api: ^1.0.4 copied to clipboard
Dart and Flutter Package Wrapper for Native Mautic REST API using Basic Authentication
import 'package:mautic_api/mautic_api.dart';
void main() async {
///
final api =
MauticAPI('https://yourmauticaddress.com', 'username', 'password');
var user = await api.getCurrentUser();
print(user.id);
print(user.firstName);
print(user.lastName);
print(user.email);
print(user.onlineStatus);
print('cached request?: ' + api.isCachedData.toString());
}