I'm trying to use the msgraph api to do this:
Logged-in user opens an Excel Online file and copies the URL from the address bar.
User goes to my app, authenticates with MS, and pastes URL into a form in my app.
My app GETs the file contents and does wonderful things with it.
I discovered I can't simply curl the URL with the access token, that gives a 401 error. All the MSGraph REST APIs want a drive ID and an item ID or a file path, not the webUrl of a DriveItem. Although the webUrl seems to encode an eTag ID that can be searched through the api, I would hope there's a more universal way to locate the resource from a universal resource locator.
Is there some reliable way to convert a webUrl to IDs MSGraph's API can understand? Or some other way to GET the contents of the file?