我一直在尝试使用 Google calendar api v3。我有日历和事件列表没有问题。但是,我正在尝试获取某些事件数据。我有getSummary()
工作和猜测getLocation()
。
有谁知道如何调用活动的开始时间?这些功能是否在我遗漏的任何地方列出?
if ($client->getAccessToken()) {
$calList = $cal->calendarList->listCalendarList();
//print "<h1>Calendar List</h1><pre>" . print_r($calList, true) . "</pre>";
$eventList = $cal->events->listEvents('yoyoyoyo@gmail.com');
foreach($eventList->getItems()as $eventList){
print "Name: ";
echo $eventList->getSummary();
echo "<br/><br/>";
print "Start: ";
echo $eventList->getdateTime(); <--- doesnt work hahah
echo "<br/><br/><hr>";
}
}