Skip to content
This repository was archived by the owner on Aug 25, 2025. It is now read-only.

Commit 5f1aee4

Browse files
SenkjMcxw620
andauthored
mod: Add Tutorial for BaiduNetDisk Token (#43)
* 百度网盘token获取方式说明更新 * 修改tag错误 * 增加百度网盘教程图片 * 完善部分说明 * 增加英文翻译 这个也要手搓吗 --------- Co-authored-by: Hantong Chen <70561268+cxw620@users.noreply.github.com>
1 parent 5de9cae commit 5f1aee4

File tree

6 files changed

+21
-2
lines changed

6 files changed

+21
-2
lines changed
364 KB
Loading
301 KB
Loading
302 KB
Loading
67.5 KB
Loading

docs/guide/drivers/baidu.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,18 @@ Or use the proxy function in this program to transfer.
2929
:::
3030

3131
## **Refresh token**
32-
[Click here](https://openapi.baidu.com/oauth/2.0/authorize?response_type=code&client_id=iYCeC9g08h5vuP9UqvPHKKSVrKFXGa1v&redirect_uri=https://alist.example.com/tool/baidu/callback&scope=basic,netdisk&qrcode=1) to get the refresh token.
32+
[Click here](https://api.oplist.org/) to obtain a refresh token.
33+
If you have Baidu Netdisk developer permissions, please select "Baidu Netdisk Verify Login" and enter the callback address provided by this page in the Baidu Netdisk developer application backend. After clicking to get the token, you will automatically obtain the refresh token. Then, configure your own `client_id` and `client_secret` in Openlist.
34+
![](/img/drivers/baidu/dev_token.png)
35+
36+
If you do not have Baidu Netdisk developer permissions, please select "Baidu Netdisk OOB Verification". By default, the client parameters of ES File Explorer are used for configuration, but you can also use your own `client_id` and `client_secret` parameters. After clicking to get the token, please wait patiently for the Baidu login page to appear. After logging in and authorizing, copy the authorization code, return to the original page, and follow the instructions to obtain the refresh token. Enter your `client_id` and `client_secret` in the Openlist storage configuration interface to use.
37+
![](/img/drivers/baidu/crack_dev_token.png)
38+
39+
The built-in API call implementation uses the server as a proxy to refresh the access_token. This feature is now online. Check the option to use the parameters provided by Openlist, click to get the token, and you will obtain the refresh token. In the Openlist storage configuration interface, enable the "use online API" option, enter the refresh token, and you can use it.
40+
![](/img/drivers/baidu/non_dev_token.png)
41+
42+
The principle of the online API can be roughly explained by the diagram
43+
![](/img/drivers/baidu/openapi.png)
3344

3445

3546

docs/zh/guide/drivers/baidu.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,15 @@ flowchart TB
7272

7373
## **刷新令牌**
7474

75-
[点击这里](https://openapi.baidu.com/oauth/2.0/authorize?response_type=code&client_id=iYCeC9g08h5vuP9UqvPHKKSVrKFXGa1v&redirect_uri=https://alist.example.com/tool/baidu/callback&scope=basic,netdisk&qrcode=1) 来获取刷新令牌。
75+
[点击这里](https://api.oplist.org/) 来获取刷新令牌。
76+
如果你有百度网盘开发者权限,请选择“百度网盘 验证登录”,并在百度网盘开发者应用后台里填入配置回调地址为该网页提供的回调地址。点击获取token后即可自动获取刷新令牌,并在openlist中配置您自己的cilent_id和cilent_secret。
77+
![](/img/drivers/baidu/dev_token.png)
78+
如果你没有百度网盘开发权限,请选择“百度网盘 OOB验证”,目前默认使用es文件浏览器的客户端参数进行配置,您也可以选择使用自己的获取到的cilent_id和cilent_secret参数,点击获取token后耐心等待跳转百度页面,登录授权后复制授权码,回到原网页按照提示即可获取刷新令牌。在Openlist的存储配置界面将cilent_id和cilent_secret填入即可使用。
79+
![](/img/drivers/baidu/crack_dev_token.png)
80+
内置API调用的实现方式为服务器中转刷新access_token,目前已经上线,勾选使用Openlist提供的参数,点击获取token即可获得刷新令牌。在Openlist的存储配置界面,打开使用online api选项,经刷新令牌填入即可使用。
81+
![](/img/drivers/baidu/non_dev_token.png)
82+
对于online api的原理,大体可以由下图说明:
83+
![](/img/drivers/baidu/openapi.png)
7684

7785

7886

0 commit comments

Comments
 (0)