Contents

nef10/rogersbankdownloader

This is a small library to download transaction data for Rogers Bank Credit Cards.

What

This is a small library to download transaction data for Rogers Bank Credit Cards.

How

  1. Create an instance of RogersAuthenticator and set your delegate.
  2. Call login(username: "x", password: "x,", deviceId: "x") on it. If you don't have a deviceId, pass in nil, otherwise pass the one you received from the delegate after the last successful login.
  3. In the completion handler check that the login was successful: if case let .success(user) = $0
  4. user now contains the logged in user, which contains the accounts - these already contain info about the current balance, last statement amount, among other information
  5. If you want to download the transactions, e.g. call user.accounts[0].downloadActivities(statementNumber: 0) - if you have more than one account change the index accordingly - the statementNumber parameter indicates which statement period to download the transactions from, with 0 meaning the current period, 1 the last statement and so on.

Please also check out the complete documentation here.

Usage

The library supports the Swift Package Manger, so simply add a dependency in your Package.swift:

.package(url: "https://github.com/Nef10/RogersBankDownloader.git", .exact(from: "X.Y.Z")),

Note: as per semantic versioning all versions changes < 1.0.0 can be breaking, so please use .exact for now

Limitations

Please note that I developed this library for my own needs. As there is no offical API everything was reverse engineered and there may be a lot of bugs.

Pull requests to fix bugs are otherwise enhance the library are very welcome.

Package Metadata

Repository: nef10/rogersbankdownloader

Default branch: main

README: README.md