onedrive-api-docs: GET file content not working
When I make call to GET file meta-data it works
curl -X GET -H "Authorization: Bearer ey.." "https://myspo.sharepoint.com/sites/zz/Non-default_Site/_api/v2.0/drives/b!ksxxx/items/014BVTELOUD3ILMS7M2ZEIJW4GUGQH3W25"
But GET file content does not. I am getting 404.
curl -X GET -H "Authorization: Bearer ey.." "https://myspo.sharepoint.com/sites/zz/Non-default_Site/_api/v2.0/drives/b!ksxxx/items/014BVTELOUD3ILMS7M2ZEIJW4GUGQH3W25/content"
Anyone else seeing this issue?
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Reactions: 2
- Comments: 16 (6 by maintainers)
Actually, I’m seeing some similar reports on StackOverflow now which are suggesting that, if you’re providing the
Authorizationheader when you access thedownload.aspxURL it is now causing issues. Can you attempt your scenario WITHOUT providing this header and see if that helps.Thanks for the confirmation - this vastly reduces the scope of code we need to consider to figure out what’s going on 😃.