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))
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))