OneDrive API 节流

OneDrive API Throttling

来自 API 文档页面,

OneDrive has limits in place to make sure that individuals and apps do not adversely affect the experience of other users. When an activity exceeds OneDrive's limits, API requests will be rejected for a period of time. OneDrive may also return a Retry-After header with the number of seconds your app should wait before sending more requests.

我看到 Microsoft 的开发人员评论说 not revealing the throttling limit is intentional

有什么方法可以提高节流限制吗? OneDrive 是否提供付费服务?

OneDrive 不提供增加节流限制的方法,目前没有付费应用程序。

OneDrive 服务允许创建的应用程序使用其 API 上传和下载与同步客户端一致的数据的限制。

我认为 OneDrive 不提供付费服务,但我相信微软对此限制相当宽松。只要您的流量没有突然变得异常高,通常您就不会受到限制。

不过既然你说你的程序是针对企业用户的,那么就简单的逐渐增加流量请求让OneDrive"learn"你的请求习惯会有所帮助。