根据 Google 日历 ID 返回活动。如需使用 iCalendar ID 检索活动,请使用 iCalUID 参数调用 events.list 方法。立即试用。
请求
HTTP 请求
GET https://www.googleapis.com/calendar/v3/calendars/calendarId/events/eventId
参数
| 参数名称 | 值 | 说明 | 
|---|---|---|
| 路径参数 | ||
| calendarId | string | 日历标识符。如需检索日历 ID,请调用 calendarList.list 方法。如果您想访问当前登录用户的主要日历,请使用“ primary”关键字。 | 
| eventId | string | 事件标识符。 | 
| 可选的查询参数 | ||
| alwaysIncludeEmail | boolean | 已弃用且已忽略。系统始终会在组织者、创建者和参加者的 email字段中返回一个值,即使没有真实的电子邮件地址也是如此(即系统会提供一个生成的无效值)。 | 
| maxAttendees | integer | 响应中包含的参加者数量上限。如果参加者人数超过指定数量,则只返回参与者。可选。 | 
| timeZone | string | 响应中使用的时区。可选。默认值为日历的时区。 | 
授权
此请求允许获得以下至少一个范围的授权:
| 范围 | 
|---|
| https://www.googleapis.com/auth/calendar.readonly | 
| https://www.googleapis.com/auth/calendar | 
| https://www.googleapis.com/auth/calendar.events.readonly | 
| https://www.googleapis.com/auth/calendar.events | 
| https://www.googleapis.com/auth/calendar.app.created | 
| 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 | 
如需了解详情,请参阅身份验证和授权页面。
请求正文
使用此方法时请勿提供请求正文。
响应
如果成功,此方法将在响应正文中返回一项 Events 资源。
试试看!
使用下面的 API Explorer 对实际数据调用此方法,然后查看响应。