Skip to content

Instantly share code, notes, and snippets.

@caitlinhall
Created July 17, 2015 21:10
Show Gist options
  • Save caitlinhall/590084b9d5ad808433c2 to your computer and use it in GitHub Desktop.
Save caitlinhall/590084b9d5ad808433c2 to your computer and use it in GitHub Desktop.
// This Ajax call helps you authenticate your website with the Instagram API.
$.ajax({
type: 'GET',
url: 'https://api.instagram.com/v1/users/' + userid + '/?access_token=' + myToken,
dataType: 'jsonp',
success: function(json) {
createProfile(json);
},
error: function(error) {
console.log(error);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment