With no return of the object, the main program couldn't verify the proper addition of the event in the calendar.
6 lines
208 B
JavaScript
6 lines
208 B
JavaScript
// connects to Google Calendar and creates an event in the default calendar
|
|
// of the account
|
|
function create_event(title, date){
|
|
return CalendarApp.getDefaultCalendar().createAllDayEvent(title, date);
|
|
}
|