Skip to content

Instantly share code, notes, and snippets.

@evanrmurphy
Created December 10, 2010 03:40
Show Gist options
  • Save evanrmurphy/735729 to your computer and use it in GitHub Desktop.
Save evanrmurphy/735729 to your computer and use it in GitHub Desktop.
Access the Chip Chirp API with JSONP
<!DOCTYPE html>
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>
<script>
$(function(){
$.getJSON("http://chipchirp.heroku.com/chirps/?callback=?",
function(data) {
console.log(data);
});
});
</script>
</head>
<body>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment