1.0.1 • Published 3 years ago

@porichoy/sdk v1.0.1

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

Porichoy SDK

Installation

npm i @porichoy/sdk;

Usage

Autofill

const PorichoySdk = require("@porichoy/sdk");
const porichoySdk = new PorichoySdk("<API KEY>");

porichoySdk.autofill({
  nidNumber: "1234567895",
  dateOfBirth: "1973-04-14",
})
.then(response => console.log(response))
.catch(error => console.error(error.response))

Basic

const PorichoySdk = require("@porichoy/sdk");
const porichoySdk = new PorichoySdk('<API KEY>');

porichoySdk.basic({
  person_dob: "1973-04-14",
  national_id: "1234567895",
  person_fullname: "Abdur Rahman",
  team_tx_id: "Any random and unique transaction id",
  match_name: false,
})
.then(response => console.log(response))
.catch(error => console.error(error.response))