Giter VIP home page Giter VIP logo

pap-api's People

Contributors

aliasnille avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

pap-api's Issues

Data sources?

What is the data source? how reliable would you say the register is?

Data attribution and license

Thanks for making the service available. For the use cases I have in mind, apart from the information provided I'd need to have source attribution information and the data usage license.

Malformed response when trying to validate address

When trying to validate an address:

curl -v "https://papapi.se/json/?token=<TOKEN>&v=sdf|sdf|sdf|sdf" (address is clearly invalid)

The response is:

< HTTP/1.1 200 OK
< Date: Fri, 10 Aug 2018 16:52:06 GMT
< Server: Apache
< X-Powered-By: PHP/5.5.38
< Access-Control-Allow-Origin: *
< Pragma: public
< Cache-control: private
< Expires: -1
< Upgrade: h2,h2c
< Connection: Upgrade
< Transfer-Encoding: chunked
< Content-Type: application/json; charset=utf-8
< 
<br />
<b>Warning</b>:  mysqli_num_rows() expects parameter 1 to be mysqli_result, boolean given in <b>/[redacted]/index.php</b> on line <b>743</b><br />
<br />
<b>Warning</b>:  mysqli_num_rows() expects parameter 1 to be mysqli_result, boolean given in <b>/[redacted]/index.php</b> on line <b>753</b><br />
<br />
<b>Warning</b>:  mysqli_num_rows() expects parameter 1 to be mysqli_result, boolean given in <b>/[redacted]/index.php</b> on line <b>763</b><br />
* Connection #0 to host papapi.se left intact
{"api":{"name":"PAP-API","url":"HTTPS://WWW.PAPAPI.SE/","version":"1.22","encoding":"UTF-8"},"result":{"address":{"street":"SDF","number":"sdf","zipcode":"sdf","city":"SDF"},"status":{"code":"100","description_sv":"KORREKT ANGIVEN ADRESS","description_en":"CORRECT SPECIFIED ADDRESS"}}}

Note two issues:

  1. The JSON response is tainted by PHP warning
  2. The response says the address is "CORRECT SPECIFIED ADDRESS" even though it is clearly incorrect.

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.