i'm trying to create a sync tool that syncs users' cals in one app with
their Google calendars. It seems I can create Goog events further than 13
days into the past, but i can't query them.
i create extended properties, and use those properties to map the goog
events to my apps events - this works well. but, i just need to know how far
back i can query Goog cal, as it allows me to create events at any date in
the past, but i can't seem to query past 13 days. known issue?
here's the query that i base the sync on:
//set up goog cal query parameters
$tz= $timezone;
$end=strtotime('+3 months');
$start= strtotime('-13 days');
$gstart= strtotime('-13 days');
date_default_timezone_set($tz);
//query google calendar for all events in date range - only gets events -2
weeks and future
$startDate=$gstart;
$endDate=$end;
$gdataCal = new Zend_Gdata_Calendar($client);
$query = $gdataCal->newEventQuery();
$query->setUser('default');
$query->setVisibility('private');
$query->setProjection('full');
$query->setOrderby('starttime');
$query->setStartMin($startDate);
$query->setStartMax($endDate);
$eventFeed = $gdataCal->getCalendarEventFeed($query);
much obliged
--
You received this message because you are subscribed to the Google
Groups "Google Calendar Data API" group.
To post to this group, send email to
[email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://code.google.com/apis/calendar/community/forum.html