Socket
Socket
Sign inDemoInstall

bir-regon

Package Overview
Dependencies
56
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    bir-regon

Polish legal company data query API


Version published
Weekly downloads
4
decreased by-50%
Maintainers
1
Install size
6.09 MB
Created
Weekly downloads
 

Readme

Source

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.

FAQs

Last updated on 08 Jan 2017

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc