This package contains ReScrip bindings for the excellent Node
API of Actual,
@actual-app/api
.
API documentation is best found in the official documentation. Some adjustments have been made to better suit the Reason ecosystem.
npm install re-actual
Add re-actual
in bsconfig.json
{
"dependencies": ["re-actual"]
}
Here's a full example usage of getting accounts
open Actual;
open Js.Promise;
let api = Api.make;
let run = () => {
api->Accounts.get
|> then_(accounts => {
Js.log(accounts);
resolve();
})
};
api->Run.withBudget("YOUR-BUDGET-ID", run);