如何从在线共享点中的站点页面上传和下载 aspx 文件
How to upload and download aspx files from sitepages in sharepoint online
我想从 SharePoint Online 的网站页面上传和下载 aspx 文件。可以吗?
可以通过Rest下载API:
Working with files by using REST
下面是python如何下载页面文件:
from shareplum import Site
from shareplum import Office365
from shareplum.site import Version
from config import config
# get data from configuration
username = config['sp_user']
password = config['sp_password']
site_name = config['sp_site_name']
base_path = config['sp_base_path']
doc_library = config['sp_doc_library']
authcookie = Office365(base_path, username=username, password=password).GetCookies()
site = Site('https://xxxx.sharepoint.com/sites/abc',version=Version.v365, authcookie=authcookie)
folder = site.Folder('SitePages')
folder.download_file('mysitepage.aspx', 'mysitepage.aspx')
我想从 SharePoint Online 的网站页面上传和下载 aspx 文件。可以吗?
可以通过Rest下载API: Working with files by using REST
下面是python如何下载页面文件:
from shareplum import Site
from shareplum import Office365
from shareplum.site import Version
from config import config
# get data from configuration
username = config['sp_user']
password = config['sp_password']
site_name = config['sp_site_name']
base_path = config['sp_base_path']
doc_library = config['sp_doc_library']
authcookie = Office365(base_path, username=username, password=password).GetCookies()
site = Site('https://xxxx.sharepoint.com/sites/abc',version=Version.v365, authcookie=authcookie)
folder = site.Folder('SitePages')
folder.download_file('mysitepage.aspx', 'mysitepage.aspx')