Thank you, everything is working now. The recurrence string being submitted to the feed was blank; when I generated the recurrence string, the 404 went away. Dropping echos into the Zend library, I saw that the calendar feed was successfully contacted several times before the 404 was received (the final url zend tried to contact had gAuth=xxxxxxxxx on the end).
Is it standard practice to send a 404 for poorly formed xml? Also, how do I go about suggesting changes for the documentation? The example code in the php developer's guide was broken, and it would be nice to have a timezone example, as google defaults to GMT, rather than the default for the calendar. http://code.google.com/apis/calendar/docs/1.0/developers_guide_php.html#CreatingRecurring On Wed, 14 Jan 2009 10:02:06 -0800 "Ray Baxter" <[email protected]> wrote: > > 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 -~----------~----~----~----~------~----~------~--~---
