Skip to content

Instantly share code, notes, and snippets.

@daspecster
Created February 25, 2015 19:10
Show Gist options
  • Save daspecster/6111937171e0f83c1391 to your computer and use it in GitHub Desktop.
Save daspecster/6111937171e0f83c1391 to your computer and use it in GitHub Desktop.
GetZiptastic.com Version 3 jQuery example
$.ajax({
type: "GET",
beforeSend: function(request) {
request.setRequestHeader("x-referrer", "<your domain here. example.com>");
request.setRequestHeader("x-key", "<your api key here>");
},
url: "https://zip.getziptastic.com/v3/US/48867",
success: function(data) {
console.log(data);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment