Created
December 5, 2012 16:01
-
-
Save acidtib/4216886 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
<script> | |
$(document).ready(function(){ | |
var flickrUserId = '59573034@N03'; //User Id | |
var flickrApiKey = '68dcfff9e2db6c1a901af1cc18c2e888'; | |
$.getJSON('http://api.flickr.com/services/rest/?&method=flickr.people.getPublicPhotos&api_key=' + flickrApiKey + '&user_id=' + flickrUserId + '&format=json&jsoncallback=?', function(data){ | |
$.each(data.photos.photo, function(i,item){ | |
url = "http://farm"+ item.farm +".static.flickr.com/"+ item.server +"/"+ item.id +"_"+ item.secret +"_m.jpg"; | |
$('#photos_here').append('<li><a href="'+ url +'"><img src="'+ url +'" alt="'+ item.title +'" /></a></li>'); | |
}); | |
}); | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment