如何通过Python在Google日历中设置被邀请者?
我通过python命令设置Google日历,如下所示如何通过Python在Google日历中设置被邀请者?,python,google-apps,Python,Google Apps,我通过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 de
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
这段代码由googleapi提供
有人能建议如何在这一过程中添加受邀者吗?
这方面的重要链接
我在这方面做了大量研究之后
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"))