msgraphr icon indicating copy to clipboard operation
msgraphr copied to clipboard

Ability to download files from Sharepoint

Open matbmeijer opened this issue 4 years ago • 1 comments

Hi @davidski ,

First of all, thank you so much for the package. Is there any way you might be able to include functionalities to download files located in Sharepoint? Microsoft Graph has an endpoint for https://docs.microsoft.com/en-us/graph/api/driveitem-get-content?view=graph-rest-1.0&tabs=http.

I have looked at the documentation, and it seems the sites/{site_id}/lists/{list_id}/items/{item_id}/driveItem endpoint should be the endpoint. I am currently making some tests, but I believe it should work.

I think this would be a great feature for the package, as it would allow to have a full data extraction workflow from Sharepoint!

matbmeijer avatar Apr 22 '20 13:04 matbmeijer

Hi there, @matbmeijer! Thanks for checking out this package. I'm not using Office 365 these days and don't have an account I can use to explore the file download functionality. While I've just gone in and freshened up the authentication code to account for some moves MSFT has done, I don't have a way to develop new functionality for the SharePoint side. If you have the time to submit a pull request, I'd be all too happy to check it out and merge!

davidski avatar May 31 '20 20:05 davidski