2010-05-22 4 views
0

Je suis en train Calendrier Google via la commande python comme celui-ciComment puis-je définir Invitee dans Google Agenda via Python?

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("[email protected]") 
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 

ce code est donnée par l'API Google Quelqu'un peut-il suggérer ce qu'il faut faire pour ajouter invitee dans ce domaine? liens importants pour que http://code.google.com/apis/calendar/data/1.0/developers_guide_python.html

Répondre

0

Je suis arrivé après beaucoup de recherche dans ce .....

event_audit=gdata.calendar.AttendeeStatus("http://schemas.google.com/g/2005#event.invited") 
event.who.append(gdata.calendar.Who(email="[email protected]",rel="http://schemas.google.com/g/2005#event.invited")) 
Questions connexes