All Events for a Date Range

8 views
Skip to first unread message

Sunny Beach

unread,
Oct 6, 2010, 10:22:40 PM10/6/10
to gcal4ruby
I have a Google calendar that aggregates events (other calendars) for
local clubs. I have a Rails application that uses an old (patched)
version of gcal4ruby to pull in calendars and events for a specific
date range.

I am trying to update to the current gcal4ruby gem and am having a
hard time getting all events for a date range. I can authenticate and
get a list of all the calendars.

Looking at the example below, is it possible to get all the events in
a specific period of time for a calendar?

events = Event.find(service, :all, {'start-min' =>
Time.parse("01/01/2010").utc.xmlschema, 'start-max' =>
Time.parse("06/01/2010").utc.xmlschema})

Thanks,
Sunny

sunnybe...@gmail.com

unread,
Oct 8, 2010, 2:19:20 PM10/8/10
to gcal4ruby
Hello All,

Is it possible to get all events from a calendar for a given period of time?

It would even be good to know if it is not possible and I can take it off my list.

Thanks,
Sunny

Mike Reich

unread,
Oct 8, 2010, 2:26:03 PM10/8/10
to gcal...@googlegroups.com
Hey Sunny, sorry for the delay getting back to you. I'm pretty sure its possible, but Google is notoriously finicky about date formatting, which may be the issue. I'll take a look and see what I can come up with. If you're willing, can you send a dump of the result of the code below? You can do this by enabling service.debug = true in your service object before you make the call. A debug dump will then be sent to the console. Thanks!

-Mike

Mike Reich
Seabourne Consulting
mi...@seabourneconsulting.com
425-296-2440

Sunny Beach

unread,
Oct 8, 2010, 2:45:04 PM10/8/10
to gcal...@googlegroups.com
No Sorrys!
 
I am appreciative of the work you (and everyone else) have put in. I will report back on this once I get some time this evening or over the weekend. This is a side project (programming in general at this point) and I feel pretty rusty.
 
Thanks, Sunny
Reply all
Reply to author
Forward
0 new messages