0.2.1 • Published 7 years ago

bir-regon v0.2.1

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

BIR Regon query API

Check publicly available data regarding legally registered companies in Poland.

To use this package in production you need to get a private API key. See Further reading for more information.

Example usage

const BirAPI = require('bir-regon');

let testURL = 'https://wyszukiwarkaregontest.stat.gov.pl/wsBIR/UslugaBIRzewnPubl.svc';
let testApiKey = 'abcde12345abcde12345';
let testNIP = '7740001454';

let connectionAPI = new BirAPI(testURL);

console.log('Beginning login');
connectionAPI.login(testApiKey)
  .then(sessionID => {
    console.log('Logged in, session id', sessionID);
    return connectionAPI.query(testNIP);
  })
  .then(queryResults => {
    console.log('Got results');
    console.log(queryResults);
  })
  .catch(error => {
    console.error('Request error', error);
  });

Further reading

More information is available on the Polish BIP pages.

Author

The author of this package is Grzegorz Rozdzialik.

0.2.1

7 years ago

0.2.0

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago