Guest User

Untitled

a guest
Nov 21st, 2017
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. $.ajax({
  2. url: 'https://api.partners.bazoeka.com/latest/api/postcodecheck?&format=json',
  3. method: 'GET',
  4. crossDomain: true,
  5. beforeSend: function (xhr) {
  6. xhr.setRequestHeader('username:myUsername', 'password:myPassword','apikey:apiKey');
  7. }
  8.  
  9. }).done(function () {
  10. console.log("connected!");
  11. //do stuff
  12. });
  13.  
  14. curl -H"username:myUsername" -H"password:myPassword" -H "apikey:apiKey" "https://api.partners.bazoeka.com/latest/api/postcodecheck?&format=json&postcode=1010AA&housenr=1"
Add Comment
Please, Sign In to add comment