0
我正嘗試使用Zend_Gdata_Calendar庫在Google Calendar API上創建新事件,並且努力研究如何設置可見性 - 有沒有人有任何想法實際上做到了嗎?使用Zend Google Calendar API創建私人活動PHP框架
我的類的構造具有
$this->calendar_client = Zend_Gdata_ClientLogin::getHttpClient($this->user_name, $this->password, Zend_Gdata_Calendar::AUTH_SERVICE_NAME);
凡user_name和pass_word是,它能夠寫入日曆的帳戶登錄詳細信息。以下作品
$gdataCal = new Zend_Gdata_Calendar($this->calendar_client);
$newEvent = $gdataCal->newEventEntry();
$newEvent->title = $gdataCal->newTitle($title);
$newEvent->where = array($gdataCal->newWhere($where));
$newEvent->content = $gdataCal->newContent($content);
$newEvent->visibility = 'private';
$when = $gdataCal->newWhen();
$when->startTime = $start_time;
$when->endTime = $end_time;
$newEvent->when = array($when);
$createdEvent = $gdataCal->insertEvent($newEvent,"https://www.google.com/calendar/feeds/{$email}/private/full");
($標題,$哪裏,$內容是文本字符串傳遞給函數)
但是知名度不縫習慣。
我已經試過以上,也顯示每個以下的知名度,
$newEvent->setVisibility($gdataCal->newVisibility('private'));
$newEvent->setVisibility($gdataCal->newVisibility(true));
$newEvent->setVisibility($gdataCal->newVisibility(false));
雖然所有這些工作(即在正確的時間創建一個事件)的私人標誌,從來沒有!