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.

Libraries

orangeapi_client