Skip to content

Instantly share code, notes, and snippets.

@philoye
Created January 31, 2010 10:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save philoye/291015 to your computer and use it in GitHub Desktop.
Save philoye/291015 to your computer and use it in GitHub Desktop.
require 'rubygems'
require 'smoke'
Smoke.yql(:flickr) do
prepare do
select :all
from 'flickr.photos.search'
where :user_id, flickr_user_id
end
end
photos1 = Smoke[:flickr].flickr_user_id('12021774@N05').output
puts photos1.first[:query][:uri]
photos2 = Smoke[:flickr].flickr_user_id('30853535@N00').output
puts photos2.first[:query][:uri]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment