Google Apps Script integration with GoCardless API to create a personal finance tracker
This project integrates Google Apps Script with the GoCardless API to create a powerful personal finance tracker. It allows users to connect their bank accounts, fetch transaction data, and manage their finances directly within Google Sheets.
- Connect multiple bank accounts using GoCardless API
- Fetch and update transaction data automatically
- Categorize transactions
- Generate financial reports and insights
- User-friendly bank selection interface with search functionality
- Customizable column mapping for transaction data
- Error handling and rate limit management
- Support for both booked and pending transactions
- Create a new Google Sheet
- Open the Script Editor (Tools > Script editor)
- Copy the contents of the
src
folder into the Script Editor - Set up GoCardless API credentials (instructions below)
- Open your Google Sheet
- Use the "GoCardless" menu to:
- Initialize the integration
- Link bank accounts
- Fetch transaction data
- Customize column mappings
- Select "Link Account" from the GoCardless menu
- Enter the country code for your bank
- Use the search function to find your bank in the list
- Click on your bank to start the linking process
- Follow the on-screen instructions to complete the authentication
- Select "Configure Column Mappings" from the GoCardless menu
- Use the dialog to select which transaction fields to include
- Specify the column letter for each selected field
- Save your customized mapping
- Sign up for a GoCardless account
- Obtain your API credentials (Secret ID and Secret Key)
- Use these credentials when initializing the integration in Google Sheets
- The script includes robust error handling for API requests
- Rate limit errors are managed with appropriate waiting periods
- User-friendly error messages are displayed for common issues
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License. See the LICENSE section at the end of this file for details.
MIT License
Copyright (c) 2024 Francisco Soares Mendes
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.