使用Zend Gdata Calendar類,如何向循環事件添加例外?在PHP中使用谷歌日曆api添加例外事件
$orig = $evtFeed[0]; //the original recurrence
$ex = $gc->newEventEntry(); //gc is a Zend_Gdata_Calendar object
$ex->originalEvent = $gc->newOriginalEvent($orig->getId(), $orig->getLink('self')->href, $gc->newWhen('2009-09-23T15:00:00.000Z'));
$ex->eventStatus = $gc->newEventStatus("http://schemas.google.com/g/2005#event.canceled");
$gc->insertEvent($ex);
我試着約20上面的代碼的變化,但每一次我得到以下錯誤:
Fatal error: Uncaught exception 'Zend_Gdata_App_HttpException' with message 'Expected response code 200, got 403 g:originalEvent [2009-09-23 15:00:00] does NOT correspond to an instance of the recurring event.'
我試過了,它沒有工作。然而,解析getId()工作正常。 – atraudes 2012-04-16 16:33:26