0

我正在通过这样的 python 命令设置 Google 日历

def _InsertQuickAddEvent(self, 
  content="Tennis with dddddd on 5/19/2010 4am-5:30am"):
"""Creates an event with the quick_add property set to true so the content
is processed as quick add content instead of as an event description."""
event = gdata.calendar.CalendarEventEntry()
who = whois("himanshu.sojitra@searce.com")
event.content = atom.Content(text=content)
event.quick_add = gdata.calendar.QuickAdd(value='true');    
new_event = self.cal_client.InsertEvent(event, 
    '/calendar/feeds/default/private/full')
return new_event

此代码由 Google API 提供 有人可以建议如何添加受邀者吗?该http://code.google.com/apis/calendar/data/1.0/developers_guide_python.html的重要链接

4

1 回答 1

0

我在这方面做了很多研究......

event_audit=gdata.calendar.AttendeeStatus("http://schemas.google.com/g/2005#event.invited")
event.who.append(gdata.calendar.Who(email="xyz@pqr.com",rel="http://schemas.google.com/g/2005#event.invited"))
于 2010-05-24T08:45:59.923 回答