jhonderson / actual-http-api

Basic Actual Budget API exposed through HTTP endpoints
MIT License
40 stars 9 forks source link

Support for unofficial syncExternalAccount function to trigger automatic syncs #11

Closed ajayjohn closed 3 months ago

ajayjohn commented 5 months ago

Could you please consider adding support for the syncExternalAccount function described here, so that we can trigger automatic syncs for external accounts using your REST API?

jhonderson commented 5 months ago

Hello, this project can only use the functionality exposed in the actual nodejs api, meaning it can only use the functions exposed here: https://github.com/actualbudget/actual/blob/master/packages/api/methods.ts

Let me know if there is a function there we can use to trigger the sync.

KiPIDesTAN commented 3 months ago

syncExternalAccount was removed as part of actualbudget/actual@310cc04 in exchange for api/bank-sync. This is in https://github.com/actualbudget/actual/blob/master/packages/api/methods.ts

jhonderson commented 3 months ago

Thanks for letting me know. Once Actual release this new runBankSync function (upcoming release), I will create an endpoint for it.

jhonderson commented 3 months ago

I tried to do this today, but I am getting errors updating, just opened a ticket to Actual: https://github.com/actualbudget/actual/issues/2829

jhonderson commented 3 months ago

Added support to trigger bank sync programmatically in v0.9.0.

Thanks all