mason_api 0.1.0-dev.12 copy "mason_api: ^0.1.0-dev.12" to clipboard
mason_api: ^0.1.0-dev.12 copied to clipboard

A Dart API client used by the Mason CLI (package:mason_cli).

example/main.dart

import 'package:mason_api/mason_api.dart';

const email = 'my@email.com';
const password = 't0pS3cret!'; // cspell:disable-line

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();
}
6
likes
160
pub points
7%
popularity

Publisher

verified publisherbrickhub.dev

A Dart API client used by the Mason CLI (package:mason_cli).

Repository (GitHub)
View/report issues

Topics

#mason #template #generator

Documentation

Documentation
API reference

Funding

Consider supporting this project:

github.com

License

MIT (license)

Dependencies

cli_util, http, json_annotation, meta, path, platform

More

Packages that depend on mason_api