ispis
node.js client for ispis.cz to do background check of a person or company
- written in TS ✔️
- handling authentication ✔️
- more friendly API ✔️
- normalized input data ✔️
- TODO: make batch API call
- TODO: make downloadFile API call
Install
npm i ispis
Basic usage
const Ispis = require('ispis').default;
import Ispis from 'ispis';
const ispis = new Ispis({
login: `<username>`,
password: `<password>`
});
try {
const data = await ispis.searchPerson({
profile: "Devel",
firstName: "Tomáš",
lastName: "Novák",
birthDate: new Date(`06.16.1975`),
});
} catch (err) {
console.error(err);
}
try {
const data = await ispis.searchCompany({
profile: "Devel",
IC: "26185610"
});
} catch (err) {
console.error(err);
}