0.0.14 • Published 6 years ago

leaseq-node v0.0.14

Weekly downloads
2
License
UNLICENSED
Repository
github
Last release
6 years ago

LeaseQ Node SDK

WARNING: this package is not stable yet. Expect breaking changes.

Submit credit applications to LeaseQ. This library supports both the browser and nodeJS.

Installation

Using yarn:

yarn add leaseq-node

Using npm:

npm install leaseq-node

Usage

Async/Await:

import LeaseQ from 'leaseq-node';

const api = new LeaseQ();

await api.login({
    email: '<your email>',
    password: '<your password>'
});

const { app_id } = await api.submitApplication({
    /* application data */
});

await api.uploadDocument(app_id, {
    /* file data */
});

Promises:

import LeaseQ from 'leaseq-node';

const api = new Leaseq();

api.login({
    email: '<your email>',
    password: '<your password>'
})
    .then(() => LeaseQ.submitApplication({
        /* application data */
    }))
    .then(({ app_id }) => LeaseQ.uploadDocument(app_id, {
        /* file data */
    }));

Contribution

To install:

yarn install

To test:

yarn test

To build:

yarn build
0.0.14

6 years ago

0.0.13

6 years ago

0.0.12

6 years ago

0.0.11

6 years ago

0.0.10

6 years ago

0.0.9

6 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago