1.0.8 • Published 6 years ago

@havenmoney/js-client v1.0.8

Weekly downloads
1
License
MIT
Repository
-
Last release
6 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

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago