我想通过rest api
从sharepoint列表中获取文件的内容任何人都可以帮助我,我是分享点的新手
提前致谢
答案 0 :(得分:0)
Sharepoint提供REST API来访问列表。 这是一个开始的示例终点。
http://server/site/_api/lists/getbytitle('listname')
以下是更多文档: https://docs.microsoft.com/en-us/sharepoint/dev/sp-add-ins/get-to-know-the-sharepoint-rest-service
编辑: 要下载文件,请使用以下URL:
http://server/site/_api/SP.AppContextSite(@target)/web/GetFileByServerRelativeUrl('/sites/Test/Shared Documents/" + sourcefile.get_name() + "')/$value?@target='myhosturl'
http://www.techmikael.com/2013/07/how-to-copy-files-between-sites-using.html了解更多信息。