Skip to content

Instantly share code, notes, and snippets.

@lperichon
Created April 12, 2011 16:35
Show Gist options
  • Save lperichon/915858 to your computer and use it in GitHub Desktop.
Save lperichon/915858 to your computer and use it in GitHub Desktop.
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
</head>
<body>
<script>
var apiCall = "http://thoughtful-recs-stage.appspot.com/get_photosets?origin=WebApp&user_id=2&friend_id=5&max_sets=12&jsoncallback=?"
$.ajax({
type: "GET",
url: apiCall,
dataType: "json",
success: function(data, textStatus, jqXHR) {
console.log(data);
console.log(textStatus);
console.log(jqXHR);
},
error: function(jqXHR, textStatus, errorThrown){
alert( "Error: " + textStatus );
}
});
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment