ispis

node.js client for [ispis.cz](https://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

Usage no npm install needed!

<script type="module">
  import ispis from 'https://cdn.skypack.dev/ispis';
</script>

README

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

// commonJS
const Ispis = require('ispis').default;
// ES6 modules
import Ispis from 'ispis';

const ispis = new Ispis({
    login: `<username>`, // xx@xx.cz - your sign up credentials
    password: `<password>` // xx@xx.cz - your sign up password
});

// ...
try {
    const data = await ispis.searchPerson({
      profile: "Devel", // Devel = development | CEE | CRE
      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);
}