revan_client 0.1.0+1 copy "revan_client: ^0.1.0+1" to clipboard
revan_client: ^0.1.0+1 copied to clipboard

Dart client for Revan API.

example/revan_client_example.dart

import 'package:revan_client/src/revan_api.dart';

Future<void> main() async {
  final api = RevanApi(apiUrl: 'http://127.0.0.1:8090');
  final res = await api.trubar.find('lahko');

  if (res.isValue) {
    final data = res.asValue!.value;
    print("Success! Result:\n\t${data.list.join("\n\t")}");
  } else {
    print("Error: ${res.asError!.error}");
  }

  api.dispose();
}
0
likes
140
points
15
downloads

Publisher

unverified uploader

Weekly Downloads

Dart client for Revan API.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

async, freezed_annotation, http, json_annotation

More

Packages that depend on revan_client