On Thu, Mar 12, 2009 at 4:18 PM, Brad <[email protected]> wrote: > > Thanks Trevor, > > I'm not a cluey with this API stuff, could you please give me a > specific example? I post my events to gCal like this: > > try { > $event = $gcal->newEventEntry(); > $event->title = $gcal->newTitle($title); > $when = $gcal->newWhen(); > $when->startTime = $start; > $when->endTime = $end; //If NOT all day, send end event information. > $event->when = array($when); > $gcal->insertEvent($event); > } catch (Zend_Gdata_App_Exception $e) { > echo "Error: " . $e->getResponse(); > } > echo 'Event successfully added!<br/>'; > > Thanks Mate! > > Brad
That looks approximately right to me. Give it a try, and let me know if you get an error. :) You might also want to look at the sample code here: http://framework.zend.com/svn/framework/standard/trunk/demos/Zend/Gdata/Calendar.php -- Trevor Johns --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
