1. 更好资源首页
  2. 美国vps

求助大佬们,One Drive 的API到底怎么填啊,每次一个小时就断

{“access_token”:”eyJ0e。。。。IAA”,”expiry”:”2020-03-27T00:22:30.9278491+08:00″}
每次这个时间一过,盘就掉了
再挂载,就报错
2020/03/27 00:29:50 Failed to create file system for “api:”: failed to get root: Get https://graph.microsoft.com/v1.0/drives/b!Ip5RNY6ahkOJN585pjCCGbgX-wScB3lGpkvAbBSvvNFgfGG4Lb3USaeF0zxEqpO1/root: oauth2: cannot fetch token: 401 Unauthorized
Response: {“error”:”invalid_client”,”error_description”:”AADSTS7000215: Invalid client secret is provided.rnTrace ID: 592cb690-c3e8-496b-81aa-427b50653900rnCorrelation ID: 0e366b8a-f072-40f3-9dd0-cd654e7a3a78rnTimestamp: 2020-03-26 16:29:49Z”,”error_codes”:[7000215],”timestamp”:”2020-03-26 16:29:49Z”,”trace_id”:”592cb690-c3e8-496b-81aa-427b50653900″,”correlation_id”:”0e366b8a-f072-40f3-9dd0-cd654e7a3a78″,”error_uri”:”https://login.microsoftonline.com/error?code=7000215″}
https://cdn.jsdelivr.net/gh/beiona/pic/blob/master/luntanfatieqiuzhuapi/11.PNG

我的操作顺序如下,请大佬帮忙看看

1.https://portal.azure.com/应用注册,选的第三项
https://cdn.jsdelivr.net/gh/beiona/pic/blob/master/luntanfatieqiuzhuapi/01.PNG

2.重定向url,选的web,http://localhost:53682/
https://cdn.jsdelivr.net/gh/beiona/pic/blob/master/luntanfatieqiuzhuapi/02.PNG

3.添加客户端密码,截止日期,从不
https://cdn.jsdelivr.net/gh/beiona/pic/blob/master/luntanfatieqiuzhuapi/03.PNG

4.API权限,Microsoft Graph,
委托的权限,offline_access和file里面7项
https://cdn.jsdelivr.net/gh/beiona/pic/blob/master/luntanfatieqiuzhuapi/04.PNG
https://cdn.jsdelivr.net/gh/beiona/pic/blob/master/luntanfatieqiuzhuapi/05.PNG
应用程序权限,file里面2项
https://cdn.jsdelivr.net/gh/beiona/pic/blob/master/luntanfatieqiuzhuapi/06.PNG

5.管理员授权
https://cdn.jsdelivr.net/gh/beiona/pic/blob/master/luntanfatieqiuzhuapi/07.PNG

6.Centos上新建rclone,n,名字,23
https://cdn.jsdelivr.net/gh/beiona/pic/blob/master/luntanfatieqiuzhuapi/08.PNG

7.Centos上填刚刚注册的Client_id和Client_secret
https://cdn.jsdelivr.net/gh/beiona/pic/blob/master/luntanfatieqiuzhuapi/09.PNG

8.电脑上rclone authorize “onedrive”,得到token
https://cdn.jsdelivr.net/gh/beiona/pic/blob/master/luntanfatieqiuzhuapi/10.PNG

9.Centos上复制token,1,0,y,y,q

10.Centos上挂载,rclone mount api: /api –allow-other –allow-non-empty –vfs-cache-mode writes

在宝塔的定时任务里,写了一个定时复制文件进去,cp -f /api.txt /api
但是每次一个小时候就断了,折腾了两天也没搞定。
还请大佬们指点

664718

本文来源于互联网:求助大佬们,One Drive 的API到底怎么填啊,每次一个小时就断

转载文章,作者:更好,如有侵权,请联系删除。链接:https://makebetter.best/archives/1948

发表评论

电子邮件地址不会被公开。 必填项已用*标注

联系我们

400-800-8888

在线咨询:点击这里给我发消息

邮件:[email protected]

工作时间:周一至周五,9:30-18:30,节假日休息