返回日历和活动的颜色定义。 立即试用。
请求
HTTP 请求
GET https://www.googleapis.com/calendar/v3/colors
授权
此请求允许获得以下至少一个范围的授权:
| 范围 | 
|---|
| https://www.googleapis.com/auth/calendar | 
| https://www.googleapis.com/auth/calendar.readonly | 
| https://www.googleapis.com/auth/calendar.app.created | 
| https://www.googleapis.com/auth/calendar.calendarlist | 
| https://www.googleapis.com/auth/calendar.calendarlist.readonly | 
| https://www.googleapis.com/auth/calendar.events.freebusy | 
| https://www.googleapis.com/auth/calendar.events.owned | 
| https://www.googleapis.com/auth/calendar.events.owned.readonly | 
| https://www.googleapis.com/auth/calendar.events.public.readonly | 
如需了解详情,请参阅身份验证和授权页面。
请求正文
使用此方法时请勿提供请求正文。
响应
如果成功,此方法将在响应正文中返回 Colors 资源。
试试看!
使用下面的 API Explorer 对实际数据调用此方法,然后查看响应。