Giter VIP home page Giter VIP logo

node-regon's Issues

Search by Name

tried to search by name as suggested in the example. It does not work
is there a solution to this? its a very critical feature, because you dont always know the NIP, KRS etc.

console.log("SEARCH", gus.search({
"nazwa": "KRAKOWSKIE"
}));

Nice project btw, thanks!

Request body gets escaped unnecessarily

I'm trying to integrate this library with my app, but it doesn't seem to work out of the box.

I'm creating a client and passing a key over to the constructor. That should log me in automatically, however, I'm getting a Internal Error issue back from the API.

The reason for this is that the request body gets escaped which apparently is something that the REGON API doesn't like.

Here's the final request:

<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"  xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:tns="http://CIS/BIR/PUBL/2014/07" xmlns:i0="http://CIS/BIR/PUBL/2014/07" xmlns:q1="http://CIS/BIR/2014/07" xmlns:q2="http://CIS/BIR/2014/07" xmlns:q3="http://CIS/BIR/2014/07" xmlns:q4="http://CIS/BIR/2014/07" xmlns:q5="http://CIS/BIR/2014/07" xmlns:q6="http://CIS/BIR/2014/07" xmlns:q7="http://CIS/BIR/2014/07" xmlns:q8="http://CIS/BIR/2014/07" xmlns:ns="http://CIS/BIR/2014/07"><soap:Header xmlns:wsa="http://www.w3.org/2005/08/addressing">
<wsa:To>https://wyszukiwarkaregon.stat.gov.pl/wsBIR/UslugaBIRzewnPubl.svc</wsa:To>
<wsa:Action>http://CIS/BIR/PUBL/2014/07/IUslugaBIRzewnPubl/Zaloguj</wsa:Action></soap:Header><soap:Body>
<IUslugaBIRzewnPubl_Zaloguj_InputMessage>&lt;tns:Zaloguj&gt;&lt;tns:pKluczUzytkownika&gt;MYAPIKEY&lt;/tns:pKluczUzytkownika&gt;&lt;/tns:Zaloguj&gt;</IUslugaBIRzewnPubl_Zaloguj_InputMessage>
</soap:Body>
</soap:Envelope>

Is there a reason behind this? I've tried without the escaping and it worked so I'm 100% sure it's this escaping that's breaking things.

example

Could you do a bit more structured example?
The present example has lots of commented out code.
The uncommented code doesn't work out of the box.
Even after correcting it I can't get the fullreport from gus.

Full report not returning list of PKD codes

Using

gus.getFullReport(companyRegon, findCompanyByNip.Typ, findCompanyByNip.SilosID).then(function(fullReport) {
      console.log(companyRegon, fullReport);
});

does not return list of PKD codes

node-regon.min.js

Czy jest szansa na dodanie skompilowanej biblioteki do jakiegoś jednego min.js?

Problem with loading when service is done

From time to time my module that is using node-regon, can't be loaded because of login() function which is called on load when autologin==true. I think it should be changed to lazy call, and login() should be done with the first request.

The effect is that when external regon service is down, I can't instantiate new services at that moment, even if I don't need them at this point.

problem z raportem dla DG

Pobieranie danych z wykorzystaniem NIP'ów należących do działaności gosporaczych nie działa. Otrzymuję pusty raport.
Nie ma takiego problemu, jeżeli wykorzystujemy NIP'y spółek.

Upgrade to BIR1.1?

Is there a chance to upgrade to BIR1.1 version?
DaneSzukaj (BIR1) -> DaneSzukajPodmioty (BIR1.1)
The search is not returning full address...
image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.