我应该使用哪个SDK或API列出文件并将其上传到Office 365共享点文档库 [英] Which SDK or API should I use to list and upload files into Office 365 sharepoint document libraries

查看:69
本文介绍了我应该使用哪个SDK或API列出文件并将其上传到Office 365共享点文档库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

现在(以及不久的将来)在Office 365 Sharepoint的文档库中列出,上载和下载文件的最佳方法是什么?我正在寻找.NET SDK.

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.

有OneDrive SDK,Office 365 Sharepoint SDK和Graph API,但我找不到很好的示例.我更喜欢使用SDK而不是简单的REST调用,因为我想利用.NET中的ADAL库再次对Azure Active Directory进行身份验证.

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.

推荐答案

OneDrive SDK C#.

OneDrive SDK for C#.

我刚刚使用用于Python的OneDrive SDK ,并且有一个 用于C#的OneDrive SDK ,其中应包含相同的功能. 只需确保正确使用服务发现,然后选择SharePoint RootSite服务即可.

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.

这篇关于我应该使用哪个SDK或API列出文件并将其上传到Office 365共享点文档库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆