Over a million developers have joined DZone.

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
Topics:

The best of DZone straight to your inbox.

SEE AN EXAMPLE
Please provide a valid email address.

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.
Subscribe

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}