[英]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.