Hello,
I am trying to download a file using the Sharepoint API.
I get the Access Token then I use the following API to read a folder (or any other API to download a file), but I always have the following error
GET https://{site_url}/_api/web/GetFolderByServerRelativeUrl('/Shared Documents')
Auth: Bearer {toke}
as explained here https://learn.microsoft.com/en-us/sharepoint/dev/sp-add-ins/working-with-folders-and-files-with-rest
{"error_description":"ID3035: The request was not valid or is malformed."}
The authentication token must be correct because when I change it I have a different error.
Thanks!
Gabri