OneDrive API下载 [英] OneDrive API download
问题描述
您好,我目前正在尝试开发基于Java的应用程序来访问OneDrive。到目前为止能够做我想要的一切比较好。但是今天我尝试按照这里描述的那样实现下载:https://dev.onedrive.com/items/download.htm
Hi, i am currently trying to develop a Java based app to access OneDrive. So far was able to do everything i wanted relatively good. However today i tried to implement the download as described here: https://dev.onedrive.com/items/download.htm
我想使用range参数,为用户提供暂停大量下载的功能。但无论我如何将参数发送到HTTP-Request标头或作为GET参数的URL中,它总是会向我发送完整的文件。
I wanted to use the range parameter, to offer the user the capability to pause large downloads. But no matter how i send the parameter be at within the HTTP-Request header or in the URL as a GET-Parameter it will always send me the complete file.
到目前为止我尝试过的事情:
Things i tried so far:
1。 https://api.onedrive.com/v1.0/drive/items/***/content?range=0-8388607
1. https://api.onedrive.com/v1.0/drive/items/***/content?range=0-8388607
(OAuth通过HTTP标头)
(OAuth via HTTP header)
2。 https://api.onedrive.com/v1.0/drive/items/***/content
2. https://api.onedrive.com/v1.0/drive/items/***/content
Header: Authorization: ***
range: 0-8388607
3。 https://api.onedrive.com/v1.0/drive/items/***/content
3. https://api.onedrive.com/v1.0/drive/items/***/content
Header: Authorization: ***
range: bytes=0-8388607
我还尝试了内容范围和各种变体大小写没有成功。这个剂量不起作用的原因是什么?
I also tried Content-Range and various variations on lower and upper case without success. Any reason why this dose not work?
问候,b
塞巴斯蒂安
Regards,
Sebastian
PS。我希望这是提出问题的正确位置,支持链接 在api.onedrive.com网站上没有为我加载(在不同的日子和不同的日子多次尝试过。)
PS. I hope this is the right place to ask that question,the support link on the api.onedrive.com site didn't load for me (tried several times from different locations and on different days.)
推荐答案
Hello Sebastian,
本论坛的目的是支持开放规范文档。您可以从http://www.microsoft.com/openspecifications/en/us/default.aspx上阅读有关Microsoft开放规范程序的信息。
开放规范库文档可以从http://msdn.microsoft.com/en-us/library/dd208104(PROT.10).aspx访问。
您的问题可能更适用于此论坛
https://social.msdn.microsoft.com/Forums/onedrive/en-US/home
Hello Sebastian,
The purpose of this forum is to support the Open Specifications documentation. You can read about the Microsoft Open Specifications program from http://www.microsoft.com/openspecifications/en/us/default.aspx
The library of Open Specification documents can be accessed from http://msdn.microsoft.com/en-us/library/dd208104(PROT.10).aspx
Your question may be more applicable to this forum
https://social.msdn.microsoft.com/Forums/onedrive/en-US/home
问候,
Sreekanth Nadendla
Microsoft Windows Open规格
Regards,
Sreekanth Nadendla
Microsoft Windows Open specifications
这篇关于OneDrive API下载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!