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)

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

Created from templates made available by Stagehand under a BSD-style license.

Code generated with swagger_dart_code_generator

Usage #

A simple usage example:

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}');
  }
}

Features and bugs #

Please file feature requests and bugs at the issue tracker.

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