I would like to set specific colors for events.
I believe I have to use the Calendar API. I cannot figure out how to do this.
The code I am trying is:
This is always possible. Try it out instead.
in your function:
var newEvent = calendar.createEvent(event_title, event_start_time, event_end_time,
{
location: event_location,
guests: newGuests,
sendInvites: 'true',
description: event_description
}
);
newEvent.setColor('4');
Refer to: https://developers.google.com/apps-script/reference/calendar/event-color
The string to set is the numerical string representation of event color.