简体   繁体   English

使用Office 365 API从SharePoint下载文档

[英]Download documents from SharePoint using office 365 API

I have a office 365 SharePoint site as https://myCorporateSharePoint.sharepoint.com/sites/MyApplication 我有一个Office 365 SharePoint网站, 网址https://myCorporateSharePoint.sharepoint.com/sites/MyApplication

I need to download some documents uploaded in this location with my application > I have already done the application configuration in the Azure AD and got the client ID and the key . 我需要使用我的应用程序下载一些在此位置上传的文档>我已经在Azure AD中完成了应用程序配置,并获得了客户端ID和密钥。 Now I have to download the file from the sharepoint location . 现在,我必须从共享点位置下载文件。 Any code snippets on this on how this can be done ? 关于此的任何代码片段如何实现?

You can get the App only context using a SharePoint helper class. 您可以使用SharePoint帮助器类获取“仅应用程序”上下文。 To Get the App only context refer here . 要获取“仅应用”上下文,请参考此处 Also refer the AddIn Authorization Policies . 另请参阅AddIn授权策略

To download a document from SharePoint, refer here 要从SharePoint下载文档,请参考此处

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM