简体   繁体   中英

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

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

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. 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.

If you are using in native clients then this Download Endpoint should work fine.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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