2 messages in com.googlegroups.google-calendar-help-dataapiRe: PHP: Need help for retrieving eve...
FromSent OnAttachments
KY25 Feb 2008 19:45 
Austin (Google)26 Feb 2008 10:15 
Subject:Re: PHP: Need help for retrieving event from calendar.
From:Austin (Google) (api.@google.com)
Date:02/26/2008 10:15:25 AM
List:com.googlegroups.google-calendar-help-dataapi

Hi,

In your for loop, the individual entry is already an CalendarEventEntry object, so this is how you iterate from the result of getCalendarEventFeed

function getAllEvent() {

global $gdataCal;

$url = 'http://www.google.com/calendar/feeds/default/private/full'; $query = $gdataCal->newEventQuery(); $query->setUser('default'); $query->setVisibility('private'); $query->setProjection('full'); $query->setSingleEvents(false); $eventFeed = $gdataCal->getCalendarEventFeed($query);

echo 'Event Count: ' . $eventFeed->getTotalResults() . '<br>'; foreach ($eventFeed as $event) { echo "title=" . $event->title->text; echo "id=" . $event->id->text; echo "<br>"; } }

Hope it helps, Austin

On Mon, Feb 25, 2008 at 7:45 PM, KY <kaiy@gmail.com> wrote:

Hi all.

I am currently using Zend Framework for my project development. And happen to hit 1 problem which I cannot resolve for more than 5 days.

Details attached here

http://www.zfforums.com/zend-framework-components-13/web-web-services-22/problem-retrieving-google-calendar-event-entry-615.html