我在Exchange中有一个用户联系人,我需要查询空闲/繁忙的时间信息。我可以在Outlook中这样做,方法是将它们添加到日历邀请中,然后检查用户的空闲时间。交换剂也有这种可能吗?
发布于 2022-06-15 09:00:59
get_free_busy_info方法应该做您想做的事情:
import datetime
from exchangelib import Account
a = Account(...)
start = datetime.datetime.now(a.default_timezone)
end = start + datetime.timedelta(hours=6)
accounts = [(a, 'Organizer', False)]
for busy_info in a.protocol.get_free_busy_info(
accounts=accounts, start=start, end=end
):
print(busy_info)请参阅https://ecederstrand.github.io/exchangelib/#non-account-services
https://stackoverflow.com/questions/72621285
复制相似问题