You should definitely pass a full uri to createEvent, a calendarId is not sufficient in php.
You seem to have pasted in a non-working section of code. Perhaps we could help if you pasted your actual code. Are you sure that the 404 is originating in this portion of the code? Ray On Tue, Jan 13, 2009 at 9:13 PM, Micah Fivecoate <[email protected]> wrote: > > I'm working on my first project with Zend and google calendars, and am > having trouble with insertEvent($event,$uri). Pasting the string I'm > using for $uri into firefox brings up my calendar feed, but I'm > getting a 404 from zend. > > Should the uri be only a segment of what i'm using? > > function create_events($client,$calID,$classes){ > $service = new Zend_Gdata_Calendar($client); > foreach ($classes as $class){ > $event = $service->newEventEntry(); > $event->recurrence = $service->newRecurrence($recurrence); > $event->title = $service->newTitle(trim($classes['course'])); > $event->where = array($service->newWhere($classes['location'])); > $calID = 'http://www.google.com/calendar/feeds/ > livfn7f4vi8er240ti76ijl7n0%40group.calendar.google.com/private/full'; > try{ > $newEvent = $service->insertEvent($event,$calID); > }catch (Zend_Gdata_App_HttpException $e) { > echo "Error: " . $e->getMessage() . "<br />\n"; > if ($e->getResponse() != null) { > echo "Body: <br />\n" . $e->getResponse()->asString() . > "<br />\n"; }}}} > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
