I'm trying to create an event in Google Calendar from Google Apps Script. When I run the following line
var event = CalendarApp.getDefaultCalendar().createEvent('Apollo 11
Landing',
new Date('February 22, 2017 13:00:00 UTC'),
new Date('February 22, 2017 14:00:00 UTC'));
I'm getting 'You do not have permission to call createEvent'.
Any help would be appreciated