tag:blogger.com,1999:blog-4054614406137433263.post7221882254266849033..comments2024-03-25T18:56:05.062-04:00Comments on Metadata Consulting [dot] ca: OneDrive 2017 Direct File Download URL Makermetadataconsulting (profile)http://www.blogger.com/profile/02252886574672860301noreply@blogger.comBlogger13125tag:blogger.com,1999:blog-4054614406137433263.post-1448889324168483872019-03-25T11:48:37.104-04:002019-03-25T11:48:37.104-04:00The API has change for images, when you embed a pi...The API has change for images, when you embed a picture just use the link provided. No need to convert.metadataconsulting (profile)https://www.blogger.com/profile/02252886574672860301noreply@blogger.comtag:blogger.com,1999:blog-4054614406137433263.post-82902092610286266282019-03-19T18:54:50.646-04:002019-03-19T18:54:50.646-04:00as of march 19th of 2019 this no longer work... pl...as of march 19th of 2019 this no longer work... plz help!!!Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-4054614406137433263.post-40235197699385205272018-01-22T03:33:43.779-05:002018-01-22T03:33:43.779-05:00Worked Great. Thank you so much for this post!Worked Great. Thank you so much for this post!David Norling-Christensenhttps://www.blogger.com/profile/09004788121850516908noreply@blogger.comtag:blogger.com,1999:blog-4054614406137433263.post-83356978147251553712017-11-03T14:45:05.736-04:002017-11-03T14:45:05.736-04:00Great post, it works perfectly for me, just added ...Great post, it works perfectly for me, just added a downlad button to a wordpress site an it downloads directly from onedrive. Excelent!Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-4054614406137433263.post-6955121579342835692017-08-23T06:36:30.798-04:002017-08-23T06:36:30.798-04:00In OneDrive click on the picture you need a link f...In OneDrive click on the picture you need a link for. You then get a few more options along the top bar, select 'View Original' from the ribbon. In the next window you can then copy the long link from the address bar (up to .jpg) and you're good to go.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-4054614406137433263.post-72173380229673443402017-08-08T04:56:53.198-04:002017-08-08T04:56:53.198-04:00You are a life saver. This worked nicely.
I canno...You are a life saver. This worked nicely.<br /><br />I cannot believe I can't just get the link directly from One Drive. Completely bonkers!!Unknownhttps://www.blogger.com/profile/06084216753731045349noreply@blogger.comtag:blogger.com,1999:blog-4054614406137433263.post-75021634164665185602017-06-23T03:05:45.195-04:002017-06-23T03:05:45.195-04:00Haven't tested yet, but, if I got this right, ...Haven't tested yet, but, if I got this right, you have to authorize your web app before it could get any items even shered ones, so it's not so interesting, because you have to store and refresh authorization token and therefor you have to force users to Oauth your app to their's OneDrives to make things work.Anonymoushttps://www.blogger.com/profile/02695802987635140178noreply@blogger.comtag:blogger.com,1999:blog-4054614406137433263.post-21989813586178991602017-06-22T13:07:28.542-04:002017-06-22T13:07:28.542-04:00Have you examined the OneDrive API - https://dev....Have you examined the OneDrive API - https://dev.onedrive.com/items/download.htm? Does this work?metadataconsulting (profile)https://www.blogger.com/profile/02252886574672860301noreply@blogger.comtag:blogger.com,1999:blog-4054614406137433263.post-9894839578227526412017-06-22T07:18:55.680-04:002017-06-22T07:18:55.680-04:00It's sad, but it seems these links lives just ...It's sad, but it seems these links lives just about a 24 hours or so.(Anonymoushttps://www.blogger.com/profile/02695802987635140178noreply@blogger.comtag:blogger.com,1999:blog-4054614406137433263.post-813929970884589332017-06-19T07:24:45.166-04:002017-06-19T07:24:45.166-04:00I just found, how to get "super" direct ...I just found, how to get "super" direct link to OneDrive shared file, folowing which you will receive Access-Control-Allow-Origin header required to conform CORS policy while accessing OneDrive shared files from JavaScript in your Browser.<br />1. You need to generate OneDrive embed link.<br />2. Base64 encode it and prefix with "u!"<br />3. Go to Graph Explorer (It seems like they call the whole MS Web services API as "Microsoft Graph") - OneDrive REST API official test App at https://developer.microsoft.com/en-us/graph/graph-explorer <br />4. Login there to yours Microsoft Account and Execute this query:<br />https://graph.microsoft.com/v1.0/shares/u!{your_base64_encoded_onedrive_file_embed_link}/root/<br />5. Copy content of the response JSON object field named "@microsoft.graph.downloadUrl".<br /><br />That's it - appears simplier than it seems.<br />P.S. But I didn't tested yet how long these URLs will be valid.Anonymoushttps://www.blogger.com/profile/02695802987635140178noreply@blogger.comtag:blogger.com,1999:blog-4054614406137433263.post-85221636516063945942017-06-19T03:41:55.502-04:002017-06-19T03:41:55.502-04:00Unfortunately, it seems that this tecnique can'...Unfortunately, it seems that this tecnique can't be used to retrieve files programatically via JS code, because OneDrive servers doesn't send response header "Access-Control-Allow-Origin" for a such kind of direct URLs...<br />Anonymoushttps://www.blogger.com/profile/02695802987635140178noreply@blogger.comtag:blogger.com,1999:blog-4054614406137433263.post-39664442082064037922017-06-14T07:14:05.923-04:002017-06-14T07:14:05.923-04:00Thanks a lot broThanks a lot broPanjihttps://e-book.idnoreply@blogger.comtag:blogger.com,1999:blog-4054614406137433263.post-37816529824167397812017-05-26T04:49:04.062-04:002017-05-26T04:49:04.062-04:00grtgrtShwetabloghttps://www.blogger.com/profile/12945314996642903763noreply@blogger.com