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

OrangeAPI client library.

orangeapi_client #

Client library for OrangeAPI by Orange dog d.o.o.

Getting started #

To use this plugin, add orangeapi_client as a dependency in your pubspec.yaml file.

Also you need URL for working OrangeAPI backend instance.

Usage #

// Create OrangeApi instance
final api = OrangeApi(apiUrl: 'https://api.example.com');
// Invoke relevant endpoint
final res = await api.finance.iban.getBic('SI56101000050433981');
// Process the response
if (res.isValue) {
    // Succeed
    final data = res.asValue!.value;
    print("Success! BIC: ${data.bic}, name: ${data.name}");
} else {
    // Failed, field error contains ErrorData
    print("Error: ${res.asError!.error}");
}

// Dispose api object when you no longer need it
api.dispose();

Features #

Finance #

IBAN

  • Get BIC and name of the bank by IBAN.
0
likes
150
points
36
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