mason_api 0.1.0-dev.9 icon indicating copy to clipboard operation
mason_api: ^0.1.0-dev.9 copied to clipboard

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

mason_api #

build coverage Pub style: very good analysis License: MIT

A Dart API client used by package:mason_cli.

import 'package:mason_api/mason_api.dart';

const email = 'my@email.com';
const password = 't0pS3cret!';

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();
}
5
likes
140
pub points
4%
popularity

Publisher

verified publisher iconbrickhub.dev

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

Repository (GitHub)
View/report issues

Documentation

Documentation
API reference

License

Icon for licenses.MIT (LICENSE)

Dependencies

cli_util, http, json_annotation, meta, path, platform

More

Packages that depend on mason_api