fineract-client
v2.0.21
Published
## Usage
Downloads
5
Readme
A simple node/browser client to connect to REST apis of Apache Fineract server
Usage
import { FineractAPI } from "fineract-client";
let config = { client_username: "xxx", client_tenant_id: 'default', client_base_url: "https://xxxx.in/fineract-provider/api/v1", client_password: "xxx" };
let response = await (new FineractAPI(config)).get('search', args);
let results = response.data;
console.log(results);
Run Tests
Run
npm install
Create
.env
file in your project's root and place the following contents
CBS_BASE_URL=https://xxxx.xxx.xx/fineract-provider/api/v1
CBS_USER=my_cbs_username
CBS_PASSWORD=my_cbs_password
CBS_TENANT=default
- Run
npm test
npm test