Created
February 25, 2015 19:10
-
-
Save daspecster/6111937171e0f83c1391 to your computer and use it in GitHub Desktop.
GetZiptastic.com Version 3 jQuery example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$.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