4 messages in com.googlegroups.google-calendar-help-dataapiRe: New User -- gdataCal Fatal Error ...
FromSent OnAttachments
The Squall11 Jun 2007 10:09 
Trevor Johns11 Jun 2007 23:10 
The Squall12 Jun 2007 08:37 
Ryan Boyd (Google)12 Jun 2007 19:42 
Subject:Re: New User -- gdataCal Fatal Error (PHP)
From:Trevor Johns (tre@tjohns.net)
Date:06/11/2007 11:10:17 PM
List:com.googlegroups.google-calendar-help-dataapi

On Jun 11, 10:10 am, The Squall <atru@gmail.com> wrote:

Hello, I'm a new user to the Google API and I am trying to view my calendar on my website using the PHP version of the API.

I have the Zend GData version 1.0.0 RC2 and am coming into a problem with my coding. Here is what I have so far (I know, it's not much, but it's still not working) [...snip...]

Any suggestions on what may be wrong? Any help would be GREATLY appreciated. Thanks!

The problem is that, beginning with Zend Framework 1.0, you need to use a query object when making requests. Since the 1.0 brach was just released, the documentation on code.google.com hasn't been updated yet. In the meantime, take a look at the manual on framework.zend.com:

http://framework.zend.com/manual/en/zend.gdata.html

To answer your question more directly, try something like this:

... $gdataCal = new Zend_Gdata_Calendar($client); $query = $gdataCal->newEventQuery() $query->setUser('myprivateusername'); $query->setVisibility('private-magiccookie'); $query->setProjection('full'); $eventFeed = $gdataCal->getCalendarFeed($query); ...

Hope that helps!