Skip to content

YNAB API usage changes to reduce load and improve efficiency#17

Draft
CJOWood wants to merge 1 commit intoivankahl:mainfrom
CJOWood:lighten-ynab-api-load
Draft

YNAB API usage changes to reduce load and improve efficiency#17
CJOWood wants to merge 1 commit intoivankahl:mainfrom
CJOWood:lighten-ynab-api-load

Conversation

@CJOWood
Copy link

@CJOWood CJOWood commented Jul 7, 2025

This PR refactors the YNAB integration to use more targeted API endpoints, reducing unnecessary data transfer and load on YNAB's API. Instead of fetching the entire budget object with getBudgetById, the code now uses:

  • api.categories.getCategories(budgetId) for categories/envelopes
  • api.payees.getPayees(budgetId) for payees
  • api.accounts.getAccounts(budgetId) for accounts

Some processing logic had to change for this to work.

TODO

  • Test properly

@sonarqubecloud
Copy link

sonarqubecloud bot commented Jul 7, 2025

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant