Skip to content

Instantly share code, notes, and snippets.

@benbonnet
Created May 28, 2009 14:17
Show Gist options
  • Save benbonnet/119328 to your computer and use it in GitHub Desktop.
Save benbonnet/119328 to your computer and use it in GitHub Desktop.
require 'net/http'
require 'rexml/document'
http = Net::HTTP.new('docs.google.com', 80)
path = "/feeds/documents/private/full"
headers = {'Authorization' => "AuthSubtoken=\"#{api.token}\""}
resp, data = http.get(path, headers)
@doc = Hpricot.XML(open(data.body))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment