Last active
December 16, 2015 17:49
-
-
Save sbjustin/5473235 to your computer and use it in GitHub Desktop.
This file contains 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
#require 'active_support' | |
require 'active_support/core_ext/hash' | |
require 'net/http' | |
require 'json' | |
FLICKR_USER_ID = '47465178@N06' | |
res = Net::HTTP.get('api.flickr.com',"/services/feeds/photos_public.gne?id=#{FLICKR_USER_ID}") | |
res_hash = Hash.from_xml(res) | |
res_hash["feed"]["entry"].each do |image| | |
puts image["link"][1]["href"] | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment