orangeapi_client 0.1.0 copy "orangeapi_client: ^0.1.0" to clipboard
orangeapi_client: ^0.1.0 copied to clipboard

OrangeAPI client library.

example/orangeapi_client_example.dart

import 'package:orangeapi_client/orangeapi_client.dart';

Future<void> main() async {
  final api = OrangeApi(apiUrl: 'http://localhost:8080/');
  final res = await api.finance.iban.getBic('SI56101000050433981');

  if (res.isValue) {
    final data = res.asValue!.value;
    print("Success! BIC: ${data.bic}, name: ${data.name}");
  } else {
    print("Error: ${res.asError!.error}");
  }

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

Publisher

verified publisherorangedog.net

Weekly Downloads

OrangeAPI client library.

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

async, freezed_annotation, http, io, json_annotation

More

Packages that depend on orangeapi_client