RogersBankDownloader

0.1.0

Swift Package to download Transactions for Rogers Bank Credit Cards
Nef10/RogersBankDownloader

What's New

0.1.0 Postal Code

2023-12-04T06:05:54Z

Changes

🐛 Bug Fixes

🧰 Maintenance

  • Update swiftlint config for 0.53.0 @file-sync-app (#172)
  • Update SwiftLint config for 0.52.2 @file-sync-app (#161)
  • SwiftLint: ignore Protocol Buffer files @file-sync-app (#160)
  • Update copyright year @file-sync-app (#158)
  • Release Drafter: Move dependencies to separate section @file-sync-app (#157)
  • Update SwiftLint config for 0.51.0 @file-sync-app (#154)
  • Migrate deprecated set-output to environment files @file-sync-app (#146)

📦 Dependencies

  • Bump very_good_coverage from 2.1.0 to 2.2.0 @file-sync-app (#182)
  • Bump github-script from 6.4.1 to 7.0.1 @file-sync-app (#181)
  • Bump SwiftLint to 0.54.0 @file-sync-app (#178)
  • Bump release-drafter from 5.24.0 to 5.25.0 @file-sync-app (#177)
  • Bump swift-actions/setup-swift from 1.24.0 to 1.25.0 @file-sync-app (#175)
  • Bump SwiftLint to 0.53.0 @file-sync-app (#173)
  • Bump tibdex/github-app-token from 2.0.0 to 2.1.0 @file-sync-app (#171)
  • Bump tibdex/github-app-token from 1.8.0 to 2.0.0 @file-sync-app (#170)
  • Bump actions/checkout from 3 to 4 @file-sync-app (#169)
  • Bump setup-swift from 1.23.0 to 1.24.0 @file-sync-app (#168)
  • Bump sticky-pull-request-comment to 2.8.0 @file-sync-app (#167)
  • Bump sticky-pull-request-comment to 2.7.0 @file-sync-app (#166)
  • Bump SwiftLint to 0.52.4 @file-sync-app (#165)
  • Bump Release Drafter to 5.24.0 @file-sync-app (#164)
  • Bump SwiftLint to 0.52.3 @file-sync-app (#163)
  • Bump SwiftLint to 0.52.2 @file-sync-app (#162)
  • Bump sticky-pull-request-comment to 2.6.2 @file-sync-app (#159)
  • Bump swift-actions/setup-swift from 1.22.0 to 1.23.0 @file-sync-app (#156)
  • Bump actions/github-script from 6.4.0 to 6.4.1 @file-sync-app (#155)
  • Update SwiftLint to 0.51.0 @file-sync-app (#153)
  • Bump peaceiris/actions-gh-pages from 3.9.2 to 3.9.3 @file-sync-app (#152)
  • Bump release-drafter from 5.22.0 to 5.23.0 @file-sync-app (#150)
  • Bump swift-actions/setup-swift to 1.22.0 @file-sync-app (#148)
  • Bump sticky-pull-request-comment to 2.5.0 @file-sync-app (#145)
  • Bump sticky-pull-request-comment to 2.4.0 @file-sync-app (#143)
  • Bump tibdex/github-app-token from 1.7.0 to 1.8.0 @file-sync-app (#142)
  • Bump actions/github-script from 6.3.3 to 6.4.0 @file-sync-app (#141)
  • Bump peaceiris/actions-gh-pages to 3.9.2 @file-sync-app (#138)

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.

Description

  • Swift Tools 5.3.0
View More Packages from this Author

Dependencies

  • None
Last updated: Sat Nov 09 2024 19:11:48 GMT-1000 (Hawaii-Aleutian Standard Time)