我试图通过Python访问我的Fastmail日历。我使用的是caldav
模块,这是由{a1}建议的。我的代码是这样的:
def main():
auth = HTTPBasicAuth(username='mail@domain.com', password='myapplicationpassword')
client = caldav.DAVClient('https://caldav.fastmail.com', auth=auth)
try:
client.principal()
except Exception as e:
print(e)
并且client.principal()
引发异常:
我也尝试了client = caldav.DAVClient('https://caldav.fastmail.com', username='mail@domain.com', password='myapplicationpassword')
并获得了相同的结果。在
最后,我查看了caldav example using iCloud,并尝试用fastmail重现相同的想法。我遇到了同样的问题(principal_response
状态代码为404)。在
我错过了什么?在
目前没有回答
相关问题 更多 >
编程相关推荐