@havenmoney/js-client
Javascript client for Haven API
Last updated 10 months ago by wiktorekmichael .
MIT · Original npm · Tarball · package.json
$ cnpm install @havenmoney/js-client 
SYNC missed versions from official npm registry.

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

Current Tags

  • 1.0.8                                ...           latest (10 months ago)

9 Versions

  • 1.0.8                                ...           10 months ago
  • 1.0.7                                ...           10 months ago
  • 1.0.6                                ...           10 months ago
  • 1.0.5                                ...           10 months ago
  • 1.0.4                                ...           10 months ago
  • 1.0.3                                ...           10 months ago
  • 1.0.2                                ...           10 months ago
  • 1.0.1                                ...           10 months ago
  • 1.0.0                                ...           10 months ago
Downloads
Today 0
This Week 9
This Month 9
Last Day 0
Last Week 0
Last Month 0
Dependencies (2)
Dev Dependencies (2)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |