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
-~----------~----~----~----~------~----~------~--~---

Reply via email to