(gcpi)google日历python接口
GoogleCalendar的Python项目详细描述
开始:
<;i>;来自谷歌日历导入*
gcalmng=谷歌日历()
gcalmng.connect(“some_login@gmail.com”,“some_password”)
日历=gcalmng.getCalendar(“myCalendarFortest”)
事件=日历.getEvents()
对于事件中的事件:
打印事件.getTitle()
打印事件.getcontent()
打印时间。strftime(“%y-%m-%dt%h:%m:%s”,
time.localtime(event.getStartTime())
打印时间。strftime(“%y-%m-%dt%h:%m:%s”,
time.localtime(event.getEndTime())
ev=newevent(“lluis”,“lluis.gesa@gmail.org”,
“会见”,“与Aleix讨论工作”,“La Garriga”,
时间.mktime((2007,03,27,19,30,00)),
time.mktime((2007,03,27,21,30,00)))
日历附录(EV)
<;/我>;