Swiftpack.co - Nef10/RogersBankDownloader as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by Nef10.
Nef10/RogersBankDownloader v0.0.9
Swift Package to download Transactions for Rogers Bank Credit Cards
⭐️ 1
🕓 20 weeks ago
.package(url: "https://github.com/Nef10/RogersBankDownloader.git", from: "v0.0.9")

RogersBankDownloader

CI Status Documentation percentage License: MIT Latest version platforms supported: linux | macOS | iOS | watchOS | tvOS SPM compatible

What

This is a small library to download transaction data for Rogers Bank Credit Cards. To authenticate it currently uses requires the deviceId and deviceInfo from a trusted device to skip the 2FA.

How

  1. Obtain a deviceId with the matching deviceInfo by logging into the website and having a look at the network tab in the developer tools
  2. Call User.load(username: "x", password: "x,", deviceId: "x", deviceInfo: "x")
  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.

Copyright

While my code is licensed under the MIT License, the source repository may include names or other trademarks of Rogers, Rogers Bank or other entities; potential usage restrictions for these elements still apply and are not touched by the software license. Same applies for the API design. I am in no way affilliated with Rogers Bank other than beeing customer.

GitHub

link
Stars: 1
Last commit: 2 weeks ago
jonrohan Something's broken? Yell at me @ptrpavlik. Praise and feedback (and money) is also welcome.

Release Notes

0.0.9 Activity Categories
20 weeks ago

Changes

📈 Enhancements

  • Add overlimit fee activity category @Nef10 (#136)

🐛 Bug Fixes

  • Do not crash for unknown activity categories @Nef10 (#136)

🧰 Maintenance

  • Bump peaceiris/actions-gh-pages to 3.9.1 @file-sync-app (#135)
  • Bump release-drafter from 5.21.1 to 5.22.0 @file-sync-app (#134)
  • Bump setup-swift to 1.21.0 @file-sync-app (#131)
  • Update SwiftLint config for 0.50.3 @file-sync-app (#130)
  • Bump sticky-pull-request-comment to 2.3.1 @file-sync-app (#129)
  • Bump peaceiris/actions-gh-pages to 3.9.0 @file-sync-app (#128)
  • Bump very_good_coverage to 2.1.0 @file-sync-app (#127)
  • Pin SwiftLint version to 0.50.0 @file-sync-app (#126)
  • Bump swift-actions/setup-swift to 1.20.0 @file-sync-app (#124)
  • Fix swiftlint errors @Nef10 (#125)

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics