2014-06-12 23 views
0

我使用谷歌日曆的API的Python查看calendar.The下面的代碼的事件給所有的非主日曆urls.here的列表鱈魚:如何查看非主日曆的事件?

client = gdata.calendar.client.CalendarClient(source='app_name-v3') 
client.ClientLogin('[email protected]', 'password', client.source) 
feed = client.GetOwnCalendarsFeed() 
print feed.title.text 

for i, a_calendar in enumerate(feed.entry): 
    print '\t%s. %s' % (i, a_calendar.title.text,) 
urls = list((e.title.text, e.content.src) for e in feed.entry) 
print urls 

輸出給所有的網址非主calendars.An事件可以插入使用

client.InsertEvent(event, url) 

但我怎麼查看每個URL的事件這些URL來?

回答