Search code examples
phpapizend-frameworkgoogle-calendar-apizend-gdata

PHP: Get a specific Google Calendar feed using Zend?


Disclaimer: I did try searching first, and even found this comment, but it didn't match what I'm asking.

I'm just learning to use the Zend framework to integrate Google Calendars into some software I'm building. Currently I am able to retrieve a list of my calendars, as well as to print events related to my default calendar (this and this helped me).

The problem is: I use about 8 different calendars. I want to be able to create, update and delete events on one of my non-default calendars. I assumed it was in the Zend of Google documentation, specifically passing a parameter to the getCalendarEventFeed() method, but I cannot find any documentation on it.

In summary: I'd like to be able to use the Zend framework to create/update/delete events on one of my non-default Google Calendars.


Solution

  • You have to change the feed id as you are currently accessing the default calendar.

    For a query it looks something like this: $query->setUser($id_calendar_feed);

    On a url it looks something like this: "http://www.google.com/calendar/feeds/" . $id_calendar_feed . "/private/"