Skip to content

Instantly share code, notes, and snippets.

@lilyszajn
lilyszajn / gist:1293193
Created October 17, 2011 17:34 — forked from atduskgreg/gist:1292973
example of getting a flickr photo url with jquery from the id
var apikey = "2794b427c3570f8b21835f18368f407a"
var photoid = "results.doc.photoid"
var flickrUrl = "http://api.flickr.com/services/rest/?method=flickr.photos.getSizes&api_key="+ apikey+"&photo_id="+ "6254305259" +"&format=json&jsoncallback=?"
$(window).load(function () {
$.getJSON(flickrUrl, function(data){
// console.log(data.sizes.size[3].source);
console.log(data);
console.log(results.doc)
//var results = data.rows;