Class EventGuest

EventGuest

表示活动的邀请对象。

方法

方法返回值类型简介
getAdditionalGuests()Integer获取此邀请对象表示将参加活动的其他人数。
getEmail()String获取邀请对象的电子邮件地址。
getGuestStatus()GuestStatus获取邀请对象在活动中的状态。
getName()String获取邀请对象的姓名。

详细文档

getAdditionalGuests()

获取此邀请对象表示将参加活动的其他人数。

返回

Integer - 此邀请对象表示将参加活动的其他人数

授权

使用此方法的脚本需要使用以下一个或多个 范围相关 REST API 中的相应范围进行授权:

  • https://www.googleapis.com/auth/calendar
  • https://www.googleapis.com/auth/calendar.readonly
  • https://www.google.com/calendar/feeds

getEmail()

获取邀请对象的电子邮件地址。

返回

String - 邀请对象的电子邮件地址

授权

使用此方法的脚本需要使用以下一个或多个 范围相关 REST API 中的相应范围进行授权:

  • https://www.googleapis.com/auth/calendar
  • https://www.googleapis.com/auth/calendar.readonly
  • https://www.google.com/calendar/feeds

getGuestStatus()

获取邀请对象在活动中的状态。

返回

GuestStatus - 此邀请对象的状态

授权

使用此方法的脚本需要使用以下一个或多个 范围相关 REST API 中的相应范围进行授权:

  • https://www.googleapis.com/auth/calendar
  • https://www.googleapis.com/auth/calendar.readonly
  • https://www.google.com/calendar/feeds

getName()

获取邀请对象的姓名。如果邀请对象的姓名不可用,此方法会返回邀请对象的电子邮件地址。

返回

String - 邀请对象的姓名;如果姓名不可用,则返回邀请对象的电子邮件地址

授权

使用此方法的脚本需要使用以下一个或多个 范围相关 REST API 中的相应范围进行授权:

  • https://www.googleapis.com/auth/calendar
  • https://www.googleapis.com/auth/calendar.readonly
  • https://www.google.com/calendar/feeds

已弃用的方法