Last updated:
0 purchases
mason api
mason_api #
A Dart API client used by package:mason_cli.
import 'package:mason_api/mason_api.dart';
const email = '[email protected]';
const password = 'top-secret!';
Future<void> main() async {
final masonApi = MasonApi();
final user = await masonApi.login(email: email, password: password);
print('Logged in as ${user.email}!');
masonApi.logout();
print('Logged out!');
masonApi.close();
}
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.