1.0.8 • Published 5 years ago

@havenmoney/js-client v1.0.8

Weekly downloads
1
License
MIT
Repository
-
Last release
5 years ago

Haven API Javascript client

Install

npm install @havenmoney/js-client yarn add @havenmoney/js-client

Example

const AuthedApi = require("@havenmoney/js-client").AuthedApi;

async function main() {
    try {
        const client = await new AuthedApi(
            "YOUR_ID_HERE",
            "YOUR_SECRET_HERE",
            "https://haven.dev/api"
        ).authenticated();
        const txns = await client.getTransactions("user-1");
        console.log(txns.body);
    } catch (e) {
        console.log(e);
    }
}

main();

Documentation

The Haven API docs can be found here: https://haven.readme.io/reference

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago