如何申请和配置open api

By | 2024-04-18

如何申请和配置open api?

1、去 https://www.aliyundrive.com/developer/f
申请开发者权限,理由自己想办法编,我让gpt帮忙编的。

2、得到授权后在 https://www.aliyundrive.com/developer/f
新建一个app,三个权限都要同意(我就在这步卡了半天)。授权回调uri填
https://alist.nn.ci/tool/aliyundrive/request.html
https://openapi.alipan.com/oauth/access_token

3、获取自己的app id和App Secret后在open_api.txt中按这个格式填
https://openapi.alipan.com/oauth/access_token(空格)app id(空格)App Secretz

4、访问 https://alist.nn.ci/tool/aliyundrive/request.html 中选 use my own client,输入自己的app id和App Secret,用登入方式而不是扫码方式,重新获取自己的opentoken,替换进myopentoken.txt中。

5、重启小雅docker MarkDown