DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world
Correct Ruby Example With Google Data APIs
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





