【问题标题】:Subscribing to a public Google calendar with Python使用 Python 订阅公共 Google 日历
【发布时间】:2016-10-21 13:59:04
【问题描述】:

我有一个公共日历,我希望用户能够订阅该日历。知道如何订阅或将现有日历插入用户的谷歌日历列表吗?

【问题讨论】:

    标签: python google-api google-calendar-api google-api-python-client


    【解决方案1】:

    您可以使用 CalendarList: insert 方法来执行此操作: https://developers.google.com/google-apps/calendar/v3/reference/calendarList/insert

    my_calendar_id = 'some calendar id'
    calendar_list_entry = {
        'id': my_calendar_id
    }
    
    created_calendar_list_entry = service.calendarList().insert(body=calendar_list_entry).execute()
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2023-02-17
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-06-06
      • 2015-01-23
      • 2012-05-12
      • 1970-01-01
      相关资源
      最近更新 更多