This is my code. Who can solve this problem
from shareplum import Site
from shareplum import Office365
from shareplum.site import Version
Office 365 Authentication
authcookie = Office365('https://xxxxxx.sharepoint.com/',
username='[email protected]', password='Spinfo@01234').GetCookies()
username='[email protected]', password='password').GetCookies()
print(authcookie)
site = Site('https://xxxxxx.sharepoint.com/sites/site5',
version=Version.v365, authcookie=authcookie, verify_ssl=True)
dir = 'Shared Documents\test'
f = site.Folder(dir)
for file in f.files:
print('--------')
print(file)
d = f.get_file(file['Name'])
print(d)
for folder in f.folders:
print(folder)
This is my code. Who can solve this problem
from shareplum import Site
from shareplum import Office365
from shareplum.site import Version
Office 365 Authentication
authcookie = Office365('https://xxxxxx.sharepoint.com/',
username='[email protected]', password='Spinfo@01234').GetCookies()
authcookie = Office365('https://xxxxxx.sharepoint.com/',
username='[email protected]', password='password').GetCookies()
print(authcookie)
site = Site('https://xxxxxx.sharepoint.com/sites/site5',
version=Version.v365, authcookie=authcookie, verify_ssl=True)
dir = 'Shared Documents\test'
f = site.Folder(dir)
for file in f.files:
print('--------')
print(file)
d = f.get_file(file['Name'])
print(d)
for folder in f.folders:
print(folder)