我一直在爲Google日曆的php api工作數星期。 我已經設法使用api添加和讀取事件,現在我正試圖讓Extended Properies工作。我曾嘗試將它們添加到我的事件的兩種不同的方式:
1:如何在Google日曆中使用擴展屬性php api
$extProp = New Google_EventExtendedProperties('test', 'test');
$event->setExtendedProperty($extProps);
2:
$extProp = New Google_EventExtendedProperties('test', 'test');
$event->ExtendedProperty = $extProps;
兩個不給我的錯誤,但我不知道這是否是加工。我試圖用get方法讀取事件以及在api的文檔中描述的列表方法,但我無法獲得擴展屬性。
有誰知道PHP的擴展屬性如何工作?
感謝您的提示。這與api v1不同。如果你想每個事件有一個唯一的擴展屬性,那麼你應該使用setPrivate()函數。 –