次のコードは、Google カレンダーから 7 月のイベントを取得することを想定しています。
// The code below will retrieve all the events for the user's default calendar and
// display the description of the first event
var cal = CalendarApp.getDefaultCalendar();
Logger.log(cal.getName());
var events = cal.getEvents(new Date("July 01, 2012 EST"), new Date("July 30, 2012 EST"));
if (events[0]) {
Logger.log(events[0].getDescription());
}
else
{
Logger.log("No events found");
}
しかし、その唯一の印刷「イベントが見つかりません」、
イベントを取得していませんが、カレンダー名が正しいカレンダーを取得していることを確認しました
他に確認することはありますか?