re-actual

4.0.1 • Public • Published

ReScript bindings for Actual API

npm version

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.

Get started

npm install re-actual

Add re-actual in bsconfig.json

{
  "dependencies": ["re-actual"]
}

Example

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);

Readme

Keywords

none

Package Sidebar

Install

npm i re-actual

Weekly Downloads

0

Version

4.0.1

License

MIT

Unpacked Size

9.89 kB

Total Files

24

Last publish

Collaborators

  • believer