【发布时间】:2020-05-26 21:49:27
【问题描述】:
我使用以下代码检索日历条目:
from O365 import Account
# get account element for calendars
schedule = account.schedule()
# get the main calendar
calendar = schedule.get_default_calendar()
# make a query that gets all events between a certain start and end date
begin = datetime.date.today()
end = begin + datetime.timedelta(days = 14)
query = calendar.new_query("start").greater_equal(begin)
query.chain('and').on_attribute('end').less_equal(end)
# add all events to a variable
myEvents = calendar.get_events(query=query, include_recurring=True)
问题是我从“get_events”获得最多 25 个条目。
我一般如何处理此类问题?我试图在 O365 的 github repo 上找到答案,但他们似乎没有进一步详细说明库中存在哪些函数以及各自的参数是什么。他们只是列举例子。
【问题讨论】:
标签: python azure calendar azure-ad-graph-api outlook-restapi