Get Calendar Colors

GET {{baseUrl}}/colors

Returns the color definitions for calendars and events.

Request Params

KeyDatatypeRequiredDescription
altstringData format for the response.
fieldsstringSelector specifying which fields to include in a partial response.
keystringAPI key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
oauth_tokenstringOAuth 2.0 token for the current user.
prettyPrintbooleanReturns response with indentations and line breaks.
quotaUserstringAn opaque string that represents a user for quota purposes. Must not exceed 40 characters.
userIpstringDeprecated. Please use quotaUser instead.

HEADERS

KeyDatatypeRequiredDescription
Acceptstring

RESPONSES

status: OK

{"calendar":{"qui_15":{"background":"dolore et occaecat","foreground":"et est cupidatat ullamco"},"nulla_2":{"background":"cupidatat ipsum Duis","foreground":"officia elit Excepteur dolore"},"laborisaf":{"background":"ex proident culpa consectetur veniam","foreground":"cupidatat dolore mollit laborum"}},"event":{"Excepteure8":{"background":"in","foreground":"Ut reprehenderit officia Duis"}},"kind":"calendar#colors","updated":"1990-01-21T16:25:35.908Z"}