How do you specify which calendar to add the event to in PHP? I am using the Zend framework as recommended. I can add events but it goes into the default calendar for the logged in user. I want to add to a different calendar of that user.
Here is my code (taken from http://framework.zend.com/manual/en/zend.gdata.calendar.html): ------------- // Create a new entry using the calendar service's magic factory method $event= $service->newEventEntry(); // Populate the event with the desired information // Note that each attribute is crated as an instance of a matching class $event->title = $service->newTitle("EVENT 2"); $event->where = array($service->newWhere("Mountain View, California")); $event->content = $service->newContent(" This is my awesome event. RSVP required."); // THE NEXT LINE DOESNT WORK //$event->id = $service->newID("http://www.google.com/calendar/feeds/ default/n77smb1se9fuf7ss83tjl3vna0%40group.calendar.google.com"); // Set the date using RFC 3339 format. $startDate = "2008-06-23"; $startTime = "14:00"; $endDate = "2008-06-23"; $endTime = "16:00"; $tzOffset = "-08"; $when = $service->newWhen(); $when->startTime = "{$startDate}T{$startTime}:00.000{$tzOffset}:00"; $when->endTime = "{$endDate}T{$endTime}:00.000{$tzOffset}:00"; $event->when = array($when); // Upload the event to the calendar server // A copy of the event as it is recorded on the server is returned $newEvent = $service->insertEvent($event); -------------- --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
