簡體   English   中英

如何在Java中使用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

https://docs.microsoft.com/en-us/sharepoint/dev/sp-add-ins/working-with-lists-and-list-items-with-rest

編輯:要下載文件,請使用以下URL:

http://server/site/_api/SP.AppContextSite(@target)/web/GetFileByServerRelativeUrl('/sites/Test/Shared Documents/" + sourcefile.get_name() + "')/$value?@target='myhosturl'

請參閱https://social.msdn.microsoft.com/Forums/sharepoint/en-US/02bfbcdc-73c8-4fa5-8967-cfd903a0d72e/javascript-client-object-model-openbinary-method

有關更多信息, 請訪問http://www.techmikael.com/2013/07/how-to-copy-files-between-sites-using.html

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM