Correct Ruby Example With Google Data APIs
Join the DZone community and get the full member experience.Join For Free
http://code.google.com/apis/gdata/articles/using_ruby.html One of examples in the article does not work. It is an example for listFeed and calls get_feed function which is defined in the previous code. It needs use_ssl as follows
def get_feed_ssl(uri,headers=nil) uri = URI.parse(uri) http = Net::HTTP.new(uri.host,uri.port) http.use_ssl=true return http.get(uri.path,headers) end response = get_feed_ssl(listfeed_uri, headers)Ruby 1.9.2-p180
Data (computing) Google (verb)
Opinions expressed by DZone contributors are their own.