{"id":516383,"date":"2021-07-14T21:00:46","date_gmt":"2021-07-14T13:00:46","guid":{"rendered":"http:\/\/4563.org\/?p=516383"},"modified":"2021-07-14T21:00:46","modified_gmt":"2021-07-14T13:00:46","slug":"%e5%85%b3%e4%ba%8e-onedrive-api-%e9%99%90%e5%88%b6%e7%9a%84%e4%b8%80%e4%ba%9b%e8%ae%a8%e8%ae%ba","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=516383","title":{"rendered":"\u5173\u4e8e onedrive api \u9650\u5236\u7684\u4e00\u4e9b\u8ba8\u8bba"},"content":{"rendered":"\n<p>  \t\t\t\t\t<strong>yfzz<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3>\u5173\u4e8e onedrive api \u9650\u5236\u7684\u4e00\u4e9b\u8ba8\u8bba<\/h3>\n<p>  \t\t\u6211\u662f\u5f00\u6e90\u9879\u76ee ZFile \u7684\u4f5c\u8005\uff0c\u4e4b\u524d\u67e5\u8be2\u8bba\u575b\u53d1\u8d34\u8bb0\u5f55\uff0c\u53d1\u73b0\u5927\u5bb6\u5bf9 onedrive \u7684 api \u9650\u5236\u7ed9\u7684\u7ed3\u8bba\u5404\u4e0d\u76f8\u540c\u3002<\/p>\n<p>  \u56e0\u7528\u4e16\u7eaa\u4e92\u8054\u6bd4\u8f83\u591a\uff0c\u6545\u4ee5\u4e0b\u4ec5\u9488\u5bf9\u4e16\u7eaa\u4e92\u8054 onedrive\uff0c\u56fd\u9645\u7248\u7684\u4e0d\u592a\u6e05\u695a\uff0c\u5f53\u7136\u6709\u719f\u6089\u7684\uff0c\u5927\u5bb6\u4e5f\u53ef\u4ee5\u56de\u5e16\u5206\u4eab\u51fa\u6765\u3002<\/p>\n<p>  \u6b63\u6587\uff1a<\/p>\n<p>  \u76ee\u524d\u6211\u8fd9\u6709 5 \u4e2a\u5de6\u53f3\u4e16\u7eaa\u4e92\u8054\u8d26\u53f7\uff0c\u5168\u5929 24 \u5c0f\u65f6\u9650\u5236\u4e86\u4e0b\u8f7d\u9608\u503c\uff0c\u4f7f\u7528 rclone \u4e5f\u65e0\u6cd5\u4e0b\u8f7d\uff0c\u76ee\u524d\u4ec5\u53ef\u901a\u8fc7\u7f51\u9875\u7aef\u767b\u5f55\u4e0b\u8f7d\uff0c\u901a\u8fc7 api \u4e0b\u8f7d\u63d0\u793a\uff1a<\/p>\n<p>  {<br \/>  &quot;error&quot;: {<br \/>  &nbsp; &nbsp; &quot;code&quot;: &quot;activityLimitReached&quot;,<br \/>  &nbsp; &nbsp; &quot;innerError&quot;: {<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&quot;code&quot;: &quot;throttledRequest&quot;,<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&quot;innerError&quot;: {<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&quot;code&quot;: &quot;quota&quot;<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;}<br \/>  &nbsp; &nbsp; },<br \/>  &nbsp; &nbsp; &quot;message&quot;: &quot;The request has been throttled&quot;,<br \/>  &nbsp; &nbsp; &quot;retryAfterSeconds&quot;: 120,<br \/>  &nbsp; &nbsp; &quot;@error.X-ClientErrorCode&quot;: &quot;quota&quot;<br \/>  }<br \/>  }<\/p>\n<p>  \u4e4b\u524d\u4e0b\u8f7d\u9608\u503c\u662f\u4f1a\u6062\u590d\u7684\uff0c\u76ee\u524d\u51e0\u5929\u4e0b\u6765\u53d1\u73b0\uff0c\u8fd9\u51e0\u4e2a\u8d26\u53f7\u5e76\u4e0d\u4f1a\u6062\u590d\uff0c\u8fd9\u4e9b\u8d26\u53f7\u5728\u540c\u4e00\u4e2a\u5168\u5c40\u4e0b\u3002<\/p>\n<p>  \u8fd9\u51e0\u5929\u7ecf\u8bba\u575b\u67e5\u8be2\uff0c\u6709\u4eba\u8bf4\u548c clientId \u548c clientSecret \u6709\u5173\uff0c\u4f46\u6700\u8fd1\u53d1\u73b0\uff0c\u4e0b\u8f7d\u9608\u503c\u7684\u8d26\u53f7\u662f\u65e0\u6cd5\u901a\u8fc7\u5207\u6362clientId \u548c clientSecret \uff08\u4e0d\u540c\u57df\uff0c\u4e0d\u540c\u5168\u5c40\u4e0b\uff09\u6765\u7ed5\u5f00\u9650\u5236\u7684\uff0c\u5f53\u7136\u8fd9\u4e2a\u6211\u4e0d\u786e\u5b9a\u662f\u4e0d\u662f\u56e0\u4e3a\u6211\u8fd9\u4e2a\u5168\u5c40\u4e0b\u7684\u8d26\u53f7\u9650\u5236\u65b9\u5f0f\u6bd4\u8f83\u7279\u6b8a\u5bfc\u81f4\u7684\u3002<\/p>\n<p>  \u6211\u8fd9\u6839\u636e\u76ee\u524d\u6211\u4e86\u89e3\u7684\u5df2\u6709\u60c5\u51b5\u5f97\u51fa\u7684\u7ed3\u8bba\u662f\uff1a<\/p>\n<p>  1. \u5207\u6362 api \u4f3c\u4e4e\u6ca1\u6709\u7528\uff0c\u8fd8\u662f\u548c\u8d26\u53f7\u672c\u8eab\uff0c\u6216\u8005\u8bf4\u8d26\u53f7\u672c\u8eab\u6240\u5728\u7684\u5168\u5c40\u6709\u5173\u3002\u4e0d\u7136\u6211 zfile \u5185\u7f6e\u7684 clientId \u90a3\u4e48\u591a\u4eba\u7528\uff0c\u4e5f\u6ca1\u51fa\u73b0\u95ee\u9898\u3002\u800c\u4e14\u4ece api \u8bbe\u8ba1\u4e0a\u6765\u8bf4\u4e5f\u662f\u4e0d\u5408\u7406\u7684\uff0c\u8fd9\u79cd\u516c\u5171 api\uff0c\u5982\u679c\u6839\u636e api \u6765\u9650\u5236\u8c03\u7528\u6b21\u6570\uff0c\u5bf9\u4e8e\u5185\u7f6e api \u7684\u5f00\u53d1\u8005\u662f\u4e0d\u53cb\u597d\u7684\uff0c\u5982 rclone\uff0czfile\uff0craidrive \u7b49\u7a0b\u5e8f\u3002<\/p>\n<p>  2. \u4e0b\u8f7d\u9608\u503c\u3001\u8bbf\u95ee\u6587\u4ef6\u5939\u5217\u8868\u3001\u4e0a\u4f20\u6587\u4ef6\u7b49\u9608\u503c\u662f\u5206\u5f00\u7684\uff0c\u800c\u4e14\u76ee\u524d\u6ca1\u6709\u53d1\u73b0\u8bbf\u95ee\u6587\u4ef6\u5217\u8868\u592a\u9891\u7e41\u5bfc\u81f4\u9608\u503c\u8fc7\uff0c\u53ea\u9047\u5230\u8fc7\u83b7\u53d6\u4e0a\u4f20\u9608\u503c\u3001\u4e0b\u8f7d\u9608\u503c\u3002\u4e14\u4e0a\u4f20\u9608\u503c\u5206\u4e3a\uff0c\u83b7\u53d6\u4e0a\u4f20 sessionUrl \u65f6\u65e0\u6cd5\u83b7\u53d6\u63d0\u793a\u9608\u503c\uff0c\u8fd8\u6709\u5206\u6bb5\u4e0a\u4f20\u65f6\uff0c\u5176\u4e2d\u4e0a\u4f20\u5230\u67d0\u6bb5\u65f6\u9608\u503c\u3002<\/p>\n<p>  3. \u4e0b\u8f7d\u94fe\u63a5\u7684\u6709\u6548\u6027\u5e76\u4e0d\u662f\u4ece\u83b7\u53d6\u4e0b\u8f7d\u94fe\u63a5\u5f00\u59cb\u8ba1\u7b97\u7684 1 \u5c0f\u65f6\uff0c\u8fd9\u4e2a\u6211\u8be6\u7ec6\u6d4b\u8bd5\u8fc7\uff0c\u5982\u6211 2021\/07\/14 09:31:05 \u83b7\u53d6\u7684\u4e0b\u8f7d\u94fe\u63a5\uff0c\u53ef\u80fd 2021\/07\/14 10:11:25 \u65f6\u8bbf\u95ee\u5c31\u5df2\u7ecf\u5931\u6548\u4e86\u3002\u731c\u6d4b\u53ef\u80fd\u662f\u5237\u65b0 accessToken \u7684\u65f6\u95f4\u5f00\u59cb\u7b97\u7684\uff0c\u4f46\u4f3c\u4e4e\u4e5f\u4e0d\u662f\u5f88\u5408\u7406\uff0c\u8fd9\u4e2a\u8fd8\u6ca1\u641e\u6e05\u695a\u3002<\/p>\n<p>  \u4ee5\u4e0a\u662f\u6211\u7684\u7ecf\u9a8c\u548c\u5fc3\u5f97\uff0c\u5927\u5bb6\u6709\u4ec0\u4e48\u522b\u7684\u7ed3\u679c\uff0c\u4e5f\u53ef\u4ee5\u56de\u5e16\u8ddf\u8fdb\uff0c\u5e0c\u671b\u80fd\u7814\u7a76\u660e\u767d\u8fd9\u4e9b\u673a\u5236\uff0c\u6765\u5f00\u53d1\u66f4\u597d\u7528\uff0c\u66f4\u53ef\u9760\u7684\u7a0b\u5e8f\u3002\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>cherbim<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u4e2a\u4eba\u89c9\u5f97\u548c\u8d26\u53f7\u6709\u5173\uff0c\u4e00\u822c\u5355\u4e2a\u8d26\u53f7\u6bb5\u65f6\u95f4\u5185\u4e0b\u8f7d\u88ab\u5927\u91cf\u4eba\u4f7f\u7528\u6216\u8005\u6d41\u91cf\u8d85\u5927\u5c31\u4f1a\u89e6\u53d1\u9650\u5236\uff0c\u4e00\u822c\u4e00\u5929\u5c31\u89e3\u5c01\u4e86\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>bso<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u5168\u5929 24 \u5c0f\u65f6\u9650\u5236\u7684\u5df2\u7ecf\u591a\u4e45\u6ca1\u6062\u590d\u4e86\u3002\u8ddf\u5168\u5c40\u6709\u5173\u5417\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>\u6728\u6613\u9171<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u53cd\u6b63\u6211\u89c9\u5f97\u662f\u52a8\u6001\u9650\u5236\u7684\uff0c\u6bd4\u5982\u4f60\u4e0b\u8f7d\u7684\u9891\u7387\uff0c\u7ebf\u7a0b\u6570\uff0c\u901f\u5ea6\uff0c\u65f6\u95f4\u6bb5\u7b49\u7b49https:\/\/cdn.jsdelivr.net\/gh\/hishis\/forum-master\/public\/images\/patch.gif\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>\u7eff\u8c46<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u8bf7\u95ee\u4e0b\u90a3\u4e2a\u5168\u5c40\u4e0b\u7684\uff1f<\/p>\n<p>  \u4e16\u7eaa\u4e92\u8054\u4ed8\u8d39\u7248\u672c\u672c\u8eab\u5c31\u4e3a\u4e00\u4e2a\u5168\u5c40 \u5f71\u54cd\u4e0d\u5927\u5427\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>yfzz<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\tbso \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2021-7-14 11:46<br \/>  \u5168\u5929 24 \u5c0f\u65f6\u9650\u5236\u7684\u5df2\u7ecf\u591a\u4e45\u6ca1\u6062\u590d\u4e86\u3002\u8ddf\u5168\u5c40\u6709\u5173\u5417<\/p>\n<p> \u81f3\u5c113\u5929\u4e86\uff0c\u6211\u4e5f\u4e0d\u6e05\u695a\uff0c\u4f3c\u4e4e\u662f\u548c\u5168\u5c40\u6709\u5173\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>yfzz<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u7eff\u8c46 \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2021-7-14 11:48<br \/>  \u8bf7\u95ee\u4e0b\u90a3\u4e2a\u5168\u5c40\u4e0b\u7684\uff1f<\/p>\n<p>  \u4e16\u7eaa\u4e92\u8054\u4ed8\u8d39\u7248\u672c\u672c\u8eab\u5c31\u4e3a\u4e00\u4e2a\u5168\u5c40 \u5f71\u54cd\u4e0d\u5927\u5427<\/p>\n<p> \u6211\u8fd9\u4e2a\u662f\u5546\u4e1a\u7248\u7684\u7ec4\u7ec7\u5168\u5c40\uff0c\u548c\u5546\u4e1a\u57fa\u7840\u7248300\u591a\u5757\u94b1\u90a3\u4e2a\u5168\u5c40\u4e0d\u4e00\u6837\uff0c\u90a3\u4e2a\u597d\u50cf\u81ea\u5df1\u72ec\u7acb\u5168\u5c40\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>van<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u652f\u6301\u5927\u4f6c\uff0capi\u9650\u5236\u771f\u7684\u5f88\u8ff7\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>xiaowei178<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u5927\u4f6c\uff0c\u4ffa\u4e5f\u5728\u7528\u4f60\u7684ZFile&nbsp; &nbsp;\u611f\u8c22\uff0c\u4f46\u8fd9 OD\u8ff7\u4e4b API\u8c03\u7528\u4e0d\u660e\u89c9\u5389\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>\u4e09\u4e2b\u7684<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u56fd\u9645\u7248\u6559\u80b2\u5b50\u53f7\uff0c\u91cd\u65b0\u7533\u8bf7\u4e86clientId \u8fd8\u662f5M\/s,\u4e0d\u786e\u5b9a\u662f\u4e0d\u662f\u5168\u5c40\u9650\u5236\u4e86\u3002\t\t\t  <\/p>\n","protected":false},"excerpt":{"rendered":"<p>yfzz \u5927\u4f6c\u6709\u8bdd\u8bf4 : \u5173\u4e8e o&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/516383"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=516383"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/516383\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=516383"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=516383"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=516383"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}