Google calendar api 将日历事件添加到特定日历
在谷歌账户上,我有几个日历,由人工管理,例如:会议计划、维护计划。这是我用一个帐户创建的日历,并查询它们,但谷歌api是成功的 但是现在我想使用gdataapi来管理日历。我想在不是默认日历的日历中插入事件 文档说明必须将事件添加到urlGoogle calendar api 将日历事件添加到特定日历,google-calendar-api,Google Calendar Api,在谷歌账户上,我有几个日历,由人工管理,例如:会议计划、维护计划。这是我用一个帐户创建的日历,并查询它们,但谷歌api是成功的 但是现在我想使用gdataapi来管理日历。我想在不是默认日历的日历中插入事件 文档说明必须将事件添加到url POST 它可以工作,但会插入我的主日历(以我的托管登录名命名)。这个问题以前被问过,但我找不到具体的帖子。几个月前我遇到了这个问题,解决方法是指定特定日历的url。您正在使用python API吗 service = gdata.calendar.servi
POST
它可以工作,但会插入我的主日历(以我的托管登录名命名)。这个问题以前被问过,但我找不到具体的帖子。几个月前我遇到了这个问题,解决方法是指定特定日历的url。您正在使用python API吗
service = gdata.calendar.service.CalendarService()
calendar = gdata.calendar.CalendarListEntry()
event = gdata.calendar.CalendarEventEntry()
#here you login, edit the event, and insert the calendar into the service
url = calendar.content.src
service.InsertEvent(event, url)
由于我不知道您的具体情况,所以我只做了非常简短的介绍,但是上面列出的各种函数的完整文档都在gdata文档中。重要的部分是找到url并在service.InsertEvent()中使用它
希望对您有所帮助。url=calendar.content.src此粗体字符串完成所有工作!非常感谢。