pyqt-todolist/utils/JianGuoYun.py
2022-04-17 17:25:35 +08:00

15 lines
356 B
Python

from webdav3.client import Client
import configparser
options = {
'webdav_hostname': "https://dav.jianguoyun.com/dav/",
'webdav_login': "794508986@qq.com",
'webdav_password': "awncxpzjbgxxztbs"
}
client = Client(options)
# client.execute_request('list')
list1 = client.list('/')
print(list1)
exist = client.check('OpenTodoList')
print(exist)