On Jun 11, 10:10 am, The Squall <[EMAIL PROTECTED]> 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!
--
Trevor Johns
http://tjohns.net/
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---