Created
January 23, 2011 19:16
-
-
Save eqdw/792334 to your computer and use it in GitHub Desktop.
[WIP] GData Calendar Scraping
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'gdata' | |
require 'json' #parsing | |
cal = GData::Client::Calendar.new | |
cal.source = "innovatis_gdata_test" | |
cal.clientlogin("[email protected]", "YOUR_PASSWORD") | |
#now authenticated | |
#pull list of calendars which the currently logged in user can access. in json | |
feed = cal.get("https://www.google.com/calendar/feeds/default/allcalendars/full?alt=jsonc") | |
#parse body | |
feed_body = JSON.parse(feed.body) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment