https://github.com/jongiddy/municipal
Rust client for bank account access through TrueLayer
https://github.com/jongiddy/municipal
Last synced: 4 months ago
JSON representation
Rust client for bank account access through TrueLayer
- Host: GitHub
- URL: https://github.com/jongiddy/municipal
- Owner: jongiddy
- License: mit
- Created: 2021-07-24T11:53:02.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-07-27T22:31:47.000Z (almost 4 years ago)
- Last Synced: 2025-01-06T09:46:13.761Z (5 months ago)
- Language: Rust
- Size: 31.3 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# municipal
Example code to obtain bank balances using the [TrueLayer](https://truelayer.com/) API.
1. Register with TrueLayer and create an app client id and secret. Allow redirect URIs `http://localhost:3003/redirect`, `http://localhost:17465/redirect`, and `http://localhost:22496/redirect`.
1. Create a file `truelayer-sandbox.json` containing the TrueLayer client id and secret. For example:
```json
{
"client_id": "sandbox-municipal-111111",
"client_secret": "12f1a940-da45-464b-b803-53e8c95d3f2c"
}
```1. Run on sandbox account using
```
cargo run
```Complete the login through the web browser then return to the terminal to see the output:
```
TRANSACTION ACCOUNT 1 01-21-31 10000000 GBP26
SAVINGS ACCOUNT 1 01-21-31 20000000 GBP52
TRANSACTION ACCOUNT 2 01-21-31 30000000 GBP78
SAVINGS ACCOUNT 2 01-21-31 40000000 GBP104
TRANSACTION ACCOUNT 3 01-21-31 50000000 GBP130
```To use for real bank information, create the file `truelayer-live.json` instead and run using
```
cargo run -- --live
```