npm.io
1.0.1 • Published 4 years ago

niris

Licence
ISC
Version
1.0.1
Deps
1
Size
2 kB
Vulns
21
Weekly
0

NIRIS

Node Iris Package

How to install dependency

npm i niris

Usage

const { http } = require('niris')

/**
 * @params apiVersion: api version
 * @params apiKey: iris API KEY
*/

const client = http(apiVersion, apiKey)

// sample
client
  .get(`/account_validation?bank=danamon&account=111112222222`)
  .then(res => res.json(response.data))
  .catch(err => res.json(error.message))

Note: you should change bank and account params with the correct ones, based on the iris docs.