lasso 2.0.0 copy "lasso: ^2.0.0" to clipboard
lasso: ^2.0.0 copied to clipboard

A Lasso (crewing platform) API library for Dart developers. (https://lasso.io)

example/lasso_example.dart

import 'package:lasso/lasso.dart';

Future main() async {
  final baseUrl = 'https://yourcompany.lasso.io/api/v1';
  final apiKey = 'my-api-key';

  final client = lassoWithApiKey(baseUrl, apiKey);

  final crewResult = await client.crewList(limit: 10);

  if (crewResult.statusCode != 200) {
    ///Some network error
    print(crewResult.error);
  }

  for (Crew c in crewResult.body?.results ?? []) {
    print('${c.firstName} ${c.lastName}');
  }
}
2
likes
100
pub points
0%
popularity

Publisher

unverified uploader

A Lasso (crewing platform) API library for Dart developers. (https://lasso.io)

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (LICENSE)

Dependencies

chopper, collection, json_annotation, meta

More

Packages that depend on lasso