Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jun 17th, 2012  |  syntax: None  |  size: 0.27 KB  |  hits: 17  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. google api and calendar selection
  2. client = calendar.service.CalendarService(email='x', password='y')
  3. feed = client.GetOwnCalendarsFeed()
  4. # map the 'title' -> 'url'
  5. urls = dict((e.title.text, e.content.src) for e in feed.entry)
  6. client.InsertEvent(event, urls['My Calendar'])