I\'m trying to download a file from SharePoint Online using an \"app only\" token. I can obtain file info using this url
https://graph.microsoft.com:443/v1.0
You should use the @microsoft.graph.downloadUrl
property obtained from the /v1.0/me/drive/list/items/x/driveItem
response to get an app-only url to the file.
A GET request wil allow you to download the file.
See https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/resources/driveitem#instance-attributes