Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xsc/bunq-google-sheets-sync
Tool to synchronize bunq account balances with a Google spreadsheet
https://github.com/xsc/bunq-google-sheets-sync
Last synced: 27 days ago
JSON representation
Tool to synchronize bunq account balances with a Google spreadsheet
- Host: GitHub
- URL: https://github.com/xsc/bunq-google-sheets-sync
- Owner: xsc
- License: mit
- Created: 2022-02-09T11:44:59.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-02-28T12:59:28.000Z (8 months ago)
- Last Synced: 2024-04-13T20:08:45.579Z (7 months ago)
- Language: Clojure
- Size: 16.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# bunq-google-sheets-sync
[![Spice Program](https://img.shields.io/badge/spice_program-sponsored-brightgreen.svg?logo=data%3Aimage%2Fpng%3Bbase64%2CiVBORw0KGgoAAAANSUhEUgAAAA4AAAAPCAMAAADjyg5GAAABqlBMVEUAAAAzmTM3pEn%2FSTGhVSY4ZD43STdOXk5lSGAyhz41iz8xkz2HUCWFFhTFFRUzZDvbIB00Zzoyfj9zlHY0ZzmMfY0ydT0zjj92l3qjeR3dNSkoZp4ykEAzjT8ylUBlgj0yiT0ymECkwKjWqAyjuqcghpUykD%2BUQCKoQyAHb%2BgylkAyl0EynkEzmkA0mUA3mj86oUg7oUo8n0k%2FS%2Bw%2Fo0xBnE5BpU9Br0ZKo1ZLmFZOjEhesGljuzllqW50tH14aS14qm17mX9%2Bx4GAgUCEx02JySqOvpSXvI%2BYvp2orqmpzeGrQh%2Bsr6yssa2ttK6v0bKxMBy01bm4zLu5yry7yb29x77BzMPCxsLEzMXFxsXGx8fI3PLJ08vKysrKy8rL2s3MzczOH8LR0dHW19bX19fZ2dna2trc3Nzd3d3d3t3f39%2FgtZTg4ODi4uLj4%2BPlGxLl5eXm5ubnRzPn5%2Bfo6Ojp6enqfmzq6urr6%2Bvt7e3t7u3uDwvugwbu7u7v6Obv8fDz8%2FP09PT2igP29vb4%2BPj6y376%2Bu%2F7%2Bfv9%2Ff39%2Fv3%2BkAH%2FAwf%2FtwD%2F9wCyh1KfAAAAKXRSTlMABQ4VGykqLjVCTVNgdXuHj5Kaq62vt77ExNPX2%2Bju8vX6%2Bvr7%2FP7%2B%2FiiUMfUAAADTSURBVAjXBcFRTsIwHAfgX%2FtvOyjdYDUsRkFjTIwkPvjiOTyX9%2FAIJt7BF570BopEdHOOstHS%2BX0s439RGwnfuB5gSFOZAgDqjQOBivtGkCc7j%2B2e8XNzefWSu%2BsZUD1QfoTq0y6mZsUSvIkRoGYnHu6Yc63pDCjiSNE2kYLdCUAWVmK4zsxzO%2BQQFxNs5b479NHXopkbWX9U3PAwWAVSY%2FpZf1udQ7rfUpQ1CzurDPpwo16Ff2cMWjuFHX9qCV0Y0Ok4Jvh63IABUNnktl%2B6sgP%2BARIxSrT%2FMhLlAAAAAElFTkSuQmCC)](https://spiceprogram.org)
This is a tool to synchronize the current balances of your [bunq][] accounts
with a Google Sheet of your choice. This can be useful, for example, to
automatically update a household expense tracking sheet.[bunq]: https://bunq.com
## Configuration
You will need to obtain:
* A [Google OAuth2][google-oauth] client ID and client secret, with write access
to Google Sheets spreadsheets,using `http://localhost:18887/Callback` as
redirect URI.
* A [Bunq OAuth2][bunq-oauth] client ID and client secret, using
`http://localhost:18888/Callback` as redirect URI.
* A Google Sheets spreadsheet with your desired target sheet.[google-oauth]: https://support.google.com/cloud/answer/6158849?hl=en
[bunq-oauth]: https://beta.doc.bunq.com/basics/oauthOnce you have these available, create a file `config.edn` based on
`config.template.edn` in this repository and fill in the information.## Usage
```sh
lein run
```Here's what happens then:
1. A browser window will be opened where you'll be asked to authenticate towards
Bunq. You can select sub-accounts to synchronize or just synchronize
everything. (Note that the Bunq token might expire at some point and you'll
have to re-select the subaccounts when obtaining a new one.)
2. Afterwards, a browser window will be opened where you'll be asked to
authenticate towards Google.
3. The tool will then fetch the current balances and overwrite your desired
target sheet with pairs of account name and balance.Your credentials will be cached locally and automatically refreshed where
possible, so you don't have to re-authenticated all the time.## License
```
MIT LicenseCopyright (c) 2022 Yannick Scherer
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
```