使用PythonO365:如何在获取日历事件时检索25个以上的条目?
我使用以下代码检索日历条目:使用PythonO365:如何在获取日历事件时检索25个以上的条目?,python,azure,calendar,azure-ad-graph-api,outlook-restapi,Python,Azure,Calendar,Azure Ad Graph Api,Outlook Restapi,我使用以下代码检索日历条目: 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
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_事件”中最多获得25个条目
我通常如何处理这样的问题?我试图在github repo for O365上找到答案,但他们似乎没有进一步详细说明库中存在哪些函数以及各自的参数。他们只列出了示例。根据此处的文档: 您可以使用limit参数将其增加到999。 类似于get_事件(limit=500,*,query=None,order_by=None,batch=None,download_attachments=False)
希望这对你有帮助 这正是我要找的。我在alphaz18上找不到指向该页面的链接