Category : onedrive

I have a web app I wrote in JS. There is a form that allows file upload, which is then handled by PHP. I have an account already, and I’ve registered an application under MS Azure and set the following permissions: Files.Read Files.ReadWrite Files.ReadWrite.All Sites.ReadWrite.All User.Read User.ReadWrite Here is the code I use: use MicrosoftGraphGraph; ..

Read more

I am trying to retrieve the contents of shared Onedrive folders on Sharepoint sites for clients. In php with Guzzle I call the OneDrive api and the user token: https://api.onedrive.com/v1.0/shares/{TOKEN}/root?expand=children then I retrieve the content like this: $token = "****"; $url = preg_replace("/{TOKEN}/", $token, "https://api.onedrive.com/v1.0/shares/{TOKEN}/root?expand=children"); try { $res = $client->request("GET", $url, ["headers" => ["Content-Type" => ..

Read more