aliasnille / pap-api Goto Github PK
View Code? Open in Web Editor NEWDEPRECATED Open API that checks and verifies Swedish addresses and postal codes.
Home Page: https://www.papapi.se/
License: MIT License
DEPRECATED Open API that checks and verifies Swedish addresses and postal codes.
Home Page: https://www.papapi.se/
License: MIT License
What is the data source? how reliable would you say the register is?
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.
This cause problem if using https.
When I register for a token at http://pap.devr.se/registration/ I get a Not found error (The requested URL /registration/registration.php was not found on this server.)
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:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.