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.8
Swift Package to download Transactions for Rogers Bank Credit Cards
⭐️ 1
🕓 5 weeks ago
.package(url: "https://github.com/Nef10/RogersBankDownloader.git", from: "v0.0.8")


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


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.


  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.


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


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.


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.


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

Release Notes

0.0.8 Foreign pending
5 weeks ago


🐛 Bug Fixes

  • Mark all foreign values besides origialAmount as optional @Nef10 (#119) - Fixes parsing on pending foreign transactions
  • Fix flaky test @Nef10 (#90)

🧰 Maintenance

  • Bump sticky-pull-request-comment to 2.3.0 @file-sync-app (#117)
  • Bump release-drafter from 5.21.0 to 5.21.1 @file-sync-app (#116)
  • Bump tibdex/github-app-token from 1.6.0 to 1.7.0 @file-sync-app (#115)
  • Update Nef10/lcov-reporter-action to 0.4.0 @file-sync-app (#112)
  • Bump actions/github-script from 6.3.1 to 6.3.3 @file-sync-app (#111)
  • Bumpsticky-pull-request-comment to 2.2.1 @file-sync-app (#110)
  • Bump very_good_coverage from 1.2.1 to 2.0.0 @file-sync-app (#107)
  • Bump actions/github-script from 6.2.0 to 6.3.1 @file-sync-app (#106)
  • Bump Nef10/lcov-reporter-action to 0.3.2 @file-sync-app (#105)
  • Bump swift-actions/setup-swift to 1.18.0 @file-sync-app (#104)
  • Bump release-drafter from 5.20.1 to 5.21.0 @file-sync-app (#103)
  • Update SwiftLint config for 0.49.1 @file-sync-app (#100)
  • Update SwiftLint config for 0.49.0 @file-sync-app (#99)
  • Bump actions/github-script from 6.1.1 to 6.2.0 @file-sync-app (#98)
  • Bump release-drafter from 5.20.0 to 5.20.1 @file-sync-app (#96)
  • Bump actions/github-script from 6.1.0 to 6.1.1 @file-sync-app (#95)
  • Allow specifying macOS version @file-sync-app (#93)
  • Bump tibdex/github-app-token from 1.5.2 to 1.6.0 @file-sync-app (#92)
  • Update copyright year @file-sync-app (#89)
  • Update SwiftLint config for 0.47.1 @file-sync-app (#87)

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