私はGoogleカレンダー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>";
}
}