0.0.5-dev • Published 5 years ago

fractalise v0.0.5-dev

Weekly downloads
3
License
ISC
Repository
github
Last release
5 years ago

FRACTALISE

Library to interact with the Fractal-Labs APIs:

https://www.askfractal.com/product

Installation

NPM:

npm install fractalise --save

YARN:

yarn add fractalise

## Usage

Obtain Access Token:

import fractalise from "fractalise";

const fractalApi = fractalise.api(<API_KEY>, <PARTNER_ID>);
const authApi = fractalApi.auth();
authApi.createToken().then(resp => {
    return resp.data;
});

Pass token into other APIs to call endpoints:

import fractalise from "fractalise";

const fractalApi = fractalise.api(<API_KEY>, <PARTNER_ID>);
const bankApi = fractalApi.banks();
bankApi.getAccountTransactions({ authToken }, <bank_id>, <account_id>).then();

Developers

To obtain an API key and Partner ID, please sign up to the Fractal Developer platform:

https://developer.askfractal.com