Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/wpf/14.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何通过Python在Google日历中设置被邀请者?_Python_Google Apps - Fatal编程技术网

如何通过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

我通过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
这段代码由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"))