Which SDK or API should I use to list and upload files into Office 365 sharepoint document libraries

我的未来我决定 提交于 2019-12-08 12:45:31

问题


What is the best way now (and in the near future) to list, upload and download files in a document library in Office 365 Sharepoint? I'm looking for .NET SDK's.

There doesn't seem to be much support documentation available that targets this topic.

There is the OneDrive SDK, the Office 365 Sharepoint SDK and the Graph API, but I can't find good examples. I prefer to make use of SDK's rather than than plain REST calls because I want to make use of the ADAL libraries in .NET for authenticating agains Azure Active Directory.

Any advice or pointing in the right direction would be appreciated.


回答1:


OneDrive SDK for C#.

I've just done SharePoint site item listing and file upload using the OneDrive SDK for Python, and there is a OneDrive SDK for C#, which should cover the same functionality. Just make sure to correctly use the service discovery, and select the SharePoint RootSite service.

You can read more about my adventures achieving this (including some gotchas) here.



来源:https://stackoverflow.com/questions/39822092/which-sdk-or-api-should-i-use-to-list-and-upload-files-into-office-365-sharepoin

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!