Google Calendar API

Colors

For a list of methods for this resource, see the end of this page.

Resource representations

{
  "kind": "calendar#colors",
  "updated": datetime,
  "calendar": {
    (key): {
      "background": string,
      "foreground": string
    }
  },
  "event": {
    (key): {
      "background": string,
      "foreground": string
    }
  }
}
Property name Value Description Notes
calendar object Palette of calendar colors, mapping from the color ID to its definition. An 'calendarListEntry' resource refers to one of these color IDs in its 'color' field. Read-only.
calendar.(key) nested object A calendar color defintion.
calendar.(key).background string The background color associated with this color definition.
calendar.(key).foreground string The foreground color that can be used to write on top of a background with 'background' color.
event object Palette of event colors, mapping from the color ID to its definition. An 'event' resource may refer to one of these color IDs in its 'color' field. Read-only.
event.(key) nested object An event color definition.
event.(key).background string The background color associated with this color definition.
event.(key).foreground string The foreground color that can be used to write on top of a background with 'background' color.
kind string Type of the resource ("calendar#colors").
updated datetime Last modification time of the color palette (as a RFC 3339 timestamp). Read-only.

Methods

get
Returns the color definitions for calendars and events.

Authentication required

You need to be signed in with Google+ to do that.

Signing you in...

Google Developers needs your permission to do that.