Great gem! I've been using this pretty well to grab calendars, and
events... however I'm running into a problem when trying to search for
all events for a *specific* calendar.
I keep getting a "Calendar is not in this feed" error.
I'm storing google calendar id's in my db, and using those to try to
pull events.
I've verified that the calendar.google_id is same as the id used in
the google calendar settings. (Basically the id used when google
explains how to embed the calendar/xml/ical etc)
I've also made sure to replace %40 to @ to format it correctly.
timewindow = Time.new + ( days * 24 * 60 * 60 )
service = GoogleCalendar.authenticate(user)
user_calendars = User.find(
user.id).calendars
user_calendars.each do |calendar|
gevents = Event.find(service, "*", {'start-min' =>
Time.new.utc.xmlschema, 'start-max' =>
timewindow.utc.xmlschema, :calendar => calendar.google_id} })
events.concat(RemindmeEvent.convert_events(gevents))
end