I am using the PHP API, and trying to get a list of events (of a
certain title) that have no guests. I create a Zend_Gdata_Calendar
object, then a new event query, and set the projection to "full-
noattendees" but I am getting back events that have guests, even
confirmed (yes attending) guests. Conversely, setting the projection
to 'attendees-only' returns no results. How can I get a list of events
with guests? I am using the magic-cookie method of validation and I am
getting results with the correct event title and within the date
range, but detecting guests just isn't working. Can anyone tell me
what I might be doing wrong, or let me know a method that will work?
Thanks!
Here is the coded function I have:
function outputCalendar($user, $magicCookie,
$fullTextQuery='Learner_Appointment',$startDate='2010-01-01T00:00:00',
$endDate='2010-03-01T00:00:00')
{
$gdataCal = new Zend_Gdata_Calendar($client);
$query = $gdataCal->newEventQuery();
$query->setUser($user);
$query->setVisibility('private-' . $magicCookie);
$query->setProjection('full-noattendees');
$query->setQuery($fullTextQuery);
$query->setStartMin($startDate);
$query->setStartMax($endDate);
$eventFeed = $gdataCal->getCalendarEventFeed($query);
echo "<ul>\n";
foreach ($eventFeed as $event) {
//echo "\t<li>" . $event->title->text . " (" . $event->id->text .
")\n";
echo "\t<li>" . $event->title->text . "\n";
echo "\t\t<ul>\n";
foreach ($event->when as $when) {
echo "\t\t\t<li>Starts: " . $when->startTime . "</li>\n";
}
echo "\t\t</ul>\n";
echo "\t</li>\n";
}
echo "</ul>\n";
}
--
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://groups.google.com/group/google-calendar-help-dataapi?hl=en.