Main Socket features:
- brreg/check-name — check if the given company name exist
- brreg/get — get company by org number
Install package in your project:
cd my_project
npm install @syncano/cli --save-dev
npm install @eyedea-sockets/brreg --save
npx s deploy
Use it:
import Syncano from '@syncano/client'
const s = new Syncano(<instaneName>)
// Search for a user
const params = {
orgNumber: 915642349
}
const company = await s.get('brreg/get', params)