Skip to content

Latest commit

 

History

History
55 lines (40 loc) · 1.4 KB

File metadata and controls

55 lines (40 loc) · 1.4 KB

Fio Bank API client

Modern implementation of FIO Bank API.

Implemented in Kotlin with pure Java API. Any of HTTPS client library can be used, as like the JSON parser.

Usage

  1. Add a library to your project.
  2. Implement requested interfaces FioWebConnector and FioJsonConverter
  3. Create instance of FioClient with your token

Creating instance

FioClient fio = FioClient(urlConnector, gson, "mytoken");

Get account statement

Get account statement with the year and statement number:

FioAccountStatement statement = fio.getStatement(2019, 1);

Get list of transactions

Get list of transactions for the given period:

FioAccountStatement statement = fio.getTransactions(new LocalDate(2019, 1, 1), new LocalDate(2019, 1, 31));

Get list of transactions from the last download:

FioAccountStatement statement = fio.getNewTransactions();

Set last downloaded transaction

Set last downloaded transaction by by date:

fio.setTransactionPointerByDate(new LocalDate(2019, 1, 1));

Set last downloaded transaction by transaction id:

fio.setTransactionPointerById("123456789");

Documentation

API documentation from FIO

Credits

  • Jan Pěček

Licence

Licensed by GNU GPL v3