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!