Google Calendar API:V3 Setting Event Color

945 views
Skip to first unread message

Kevin Johnson

unread,
Sep 3, 2016, 11:16:56 PM9/3/16
to Google Calendar API
Using Ruby.

I create an event with:
Google::Apis::CalendarV3::Event.new(event)
wherein I have explicitly set the colorId.
When I then do a .insert_event into a custom calendar, it will maintain the color of the calendar as opposed to the color specified in the colorId.

Looking around online, it seems that event colors are only supported for the Advanced Calendar service? If so, the documentation only shows a javascript version. Is there a ruby version?

Kevin Johnson

unread,
Sep 4, 2016, 12:13:06 AM9/4/16
to Google Calendar API
I figured it out. My mistake was using the wrong attribute for color id. 
Looking at the documentation for ruby, the attribute is color_id, not colorId. 
Reply all
Reply to author
Forward
0 new messages