Giter Site home page Giter Site logo

php-client's People

Contributors

api-postcode avatar shivella avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

php-client's Issues

Accessing json.api-postcode.nl from a web client

This isn't the right place to post this issue, but I don't know where else to do it.

is using the api (with an API key) from a browser a supported use case ?

I registered for a key and tried to build a Vue component to access the API, but ran into a silly problem:

  • The API requires the Token to be in the http headers
  • this causes the browser to send a preflight (OPTIONS) request
  • the server doesn't respond with a CORS Access-Control-Allow-Origin:* on the preflight request
  • the preflight request fails and so the client fails

That seems simple enough to fix, but I don't know if you want to allow browsers to access the API like this at all, perhaps this is by design.

php-client werkt niet zonder meer

Ik ben docent webdevelopment en met mijn studenten heb ik geprobeerd deze API aan de praat te krijgen. Dat lukt op zich, maar niet zonder meer: we moesten de verwijzingen naar verschillende classes zelf toevoegen. Ook als we api-postcode via composer installeren, werkt het niet meteen. Onze vraag is: missen we nog een detail waardoor het niet zonder meer werkt, of is het toch een bug? We zijn heel benieuwd.

HTTPS error: SSL peer certificate or SSH remote key was not OK

When trying to get a postcode result from the api, when using httpS instead of http it results in the following error:

Error: SSL peer certificate or SSHremote key was not OK

Is this a bug or is it on purpose you cannot connect over https instead of http?

If you need additional information please let me know!

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.