[英]How to download a file from Bitbucket using commitId through RestAPI?
[英]how to get file content from sharepoint list using restapi in java
我想通过REST API使用Java从SharePoint列表中获取文件的内容
谁能帮我,我是新手
提前致谢
Sharepoint提供了REST API来访问列表。 这是一个示例起点。
http://server/site/_api/lists/getbytitle('listname')
这是更多文档: https : //docs.microsoft.com/zh-cn/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 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.