how to download references from task details in ms graph?
I have the following reference from a task detail (plannerTaskDetails resource type):
https://my_domain.sharepoint.com/sites/HR2/Shared Documents/2.csv?web=1
and I want to download the file but I get:
'401 UNAUTHORIZED'
I have the following delegated permissions:
I do not know if I have to add another permission. Any help is appreciated.
The actual value of the reference is 'https%3A//my_domain%2Esharepoint%2Ecom/sites/HR2/Shared Documents/2%2Ecsv?web=1'
to get the url I have used:
from urllib.parse import unquote
url = 'https%3A//my_domain%2Esharepoint%2Ecom/sites/HR2/Shared Documents/2%2Ecsv?web=1'
sp_url = unquote(url)
sp_url
# 'https://my_domain.sharepoint.com/sites/HR2/Shared Documents/2.csv?web=1'
If I put the URL in a browser where I'm logged in I can download the file.