Hi, it seems a lot of other people have had this issue too. I haven't seen any official responses that have actually given a proper solution to this issue.
For a long time, there has been a shares API that allowed for direct download link generation given a share link to an item. This API has worked the same way for a long time. Recently, there has been some sort of breaking change that makes the API no longer work the way it used to, and the documentation for it has not been updated properly to reflect how to use the API now.
Regardless of if you use the old and new share link formats, the API does not work.
Trying https://api.onedrive.com/v1.0/shares/ with the shareId always returns 400 with the message bad argument now, when it worked in the past. The documentation still says this is the correct way to do it.
Trying it with the encoded (new) URL returns a 401 with a message of "Exception of type 'Microsoft.Vroom.Exceptions.UnauthenticatedVroomException' was thrown."
.
Trying it with the encoded (old) URL returns the same thing as the new URL.
This makes no sense, as it's a public share so anyone with the link should be able to access it. I've spent hours scouring these question threads and looking for anything new in the API and seemingly nothing points to an answer.
Please either update the documentation or revert the API behaviour. If this isn't fixed soon, I'll be forced to migrate my files to another service.
Hopefully this is all just a miscommunication or misunderstanding and I'm doing something wrong.
Thanks in advance.