简体   繁体   English

Sharepoint 站点使用 Microsoft Graph 1.0 下载文件

[英]Sharepoint Site Download a file Using Microsoft Graph 1.0

What is wrong with this:这有什么问题:

https://graph.microsoft.com/v1.0/sites/insuriasa.sharepoint.com:/Sites/IFS:/drive/root/children https://graph.microsoft.com/v1.0/sites/insuriasa.sharepoint.com:/Sites/IFS:/drive/root/children

At the end of the day I want to be able to download this:在一天结束时,我希望能够下载这个:

https://graph.microsoft.com/v1.0/sites/insuriasa.sharepoint.com:/Sites/IFS:/drive/root:/Std Forms/Discovery Invest/Servicing/change_of_contribution_form_retirement_annuity_plan.pdf https://graph.microsoft.com/v1.0/sites/insuriasa.sharepoint.com:/Sites/IFS:/drive/root:/Std Forms/Discovery Invest/Servicing/change_of_contribution_form_retirement_annuity_plan.pdf

If you want to download the file content in a web application you should do a GET call on the item with ?select=@content.downloadUrl parameter.如果您想在 Web 应用程序中下载文件内容,您应该使用?select=@content.downloadUrl参数对该项目进行GET调用。 In the response you will get a pre-authenticated url in the property '@microsoft.graph.downloadUrl' on that you can do a get call without passing any extra authentication header to download the file.在响应中,您将在属性'@microsoft.graph.downloadUrl' 中获得一个预先验证的 url,您可以在不传递任何额外的身份验证标头来下载文件的情况下执行 get 调用。

If you are using in native clients then this Download Endpoint should work fine.如果您在本机客户端中使用,则此下载端点应该可以正常工作。

暂无
暂无

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

相关问题 使用“sourcedoc”ID从Microsoft Graph API下载SharePoint文件 - Download SharePoint file from Microsoft Graph API using “sourcedoc” ID 如何使用 sharepoint API 或 Microsoft Graph 从 sharepoint 站点上的文件夹请求文件内容? - How to request file content from a folder on a sharepoint site using sharepoint API or Microsoft Graph? 使用Microsoft Graph将文件上传到SharePoint驱动器 - Upload file to SharePoint drive using Microsoft Graph 尝试使用 microsoft graph api 从 sharepoint 下载文件时出现乱码 - Getting gibberish when trying to download file from sharepoint using microsoft graph api 使用Microsoft graph在SharePoint网站上创建页面 - Creating pages on sharepoint site with microsoft graph Microsoft Graph API - 仅共享 Sharepoint 站点 - Microsoft Graph API - Share Sharepoint site only 如何使用 Microsoft Graph 或 SharePoint API 获取每个 SharePoint 站点的大小? - How to get the size of each SharePoint site using Microsoft Graph or SharePoint API? 使用 Microsoft Graph API 下载 Sharepoint 文件未显示内容属性 - Downloading Sharepoint File using Microsoft Graph API not showing content attribute 使用 Microsoft Graph SDK for java 将带有元数据的大文件上传到 SharePoint - Uploading large file to SharePoint with metadata using Microsoft Graph SDK for java 使用 Microsoft Graph 在线上传文件到 SharePoint API - Uploading a File to SharePoint Online using Microsoft Graph API
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM