Skip to content

Instantly share code, notes, and snippets.

@benbonnet
Created May 28, 2009 14:18
Show Gist options
  • Save benbonnet/119332 to your computer and use it in GitHub Desktop.
Save benbonnet/119332 to your computer and use it in GitHub Desktop.
require 'net/http'
require 'rexml/document'
http = Net::HTTP.new('www.google.com', 80)
path = "/calendar/feeds/default/private/full"
headers = {'Authorization' => "AuthSub token=\"#{api.token}\"", "GData-Version" => "2"}
resp, data = http.get(path, headers)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment