Google Apps Script: Setting color of an event using Calendar API

后端 未结 4 1668
感情败类
感情败类 2021-01-14 14:55

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:

4条回答
  •  北荒
    北荒 (楼主)
    2021-01-14 15:09

    This is currently not possible. You can use setColor on a Calendar but not on an event. You can send feedback about the API from the developer pages about this and hope that it gets added.

    Meanwhile, I suggest that you create a calendar with the desired colour and place all events in there as this will make them have that colour.

提交回复
热议问题