|
| 1 | +--- |
| 2 | +title: |
| 3 | + en: 123 Open |
| 4 | + zh-CN: 123 开放平台 |
| 5 | +# This is the icon of the page |
| 6 | +icon: iconfont icon-state |
| 7 | +# This control sidebar order |
| 8 | +top: 421 |
| 9 | +# A page can have multiple categories |
| 10 | +categories: |
| 11 | + - guide |
| 12 | + - drivers |
| 13 | +--- |
| 14 | + |
| 15 | +::: en |
| 16 | +::: warning |
| 17 | +⚠️Note that the public and private keys of 123 Cloud Disk OpenAPI directly connect to the applicant's cloud disk, so you **must use your client id and client secret**. |
| 18 | + |
| 19 | +- Application method: https://www.123pan.com/developer |
| 20 | + |
| 21 | +::: |
| 22 | +::: zh-CN |
| 23 | +::: warning |
| 24 | +⚠️注意,123云盘OpenAPI的公私钥直通申请人的网盘,所以**必须使用自己的公钥和私钥** |
| 25 | + |
| 26 | +- 申请方式: https://www.123pan.com/developer |
| 27 | + |
| 28 | +::: |
| 29 | + |
| 30 | +## **获取Token** { lang="zh-CN" } |
| 31 | + |
| 32 | +## **GetToken** { lang="en" } |
| 33 | + |
| 34 | +::: zh-CN |
| 35 | +打开[https://api.oplist.org/](https://api.oplist.org/) |
| 36 | + |
| 37 | +> 如果是使用社区或者自建的api服务,请打开对应的地址 |
| 38 | +
|
| 39 | +- 选择`123 网盘 (OAuth2) 跳转登录` |
| 40 | +- 输入`客户端ID(ClientID/AppID)` |
| 41 | +- 输入`应用秘钥 (AppKey/Secret)` |
| 42 | +- 点击`获取Token` |
| 43 | + |
| 44 | +点击后,界面下方的访问令牌中将会出现`https://open-api.123pan.com/api/v1/access_token?client_id=你的客户端ID&clientSecret=你的客户端密钥` |
| 45 | + |
| 46 | +> 这就是访问令牌 |
| 47 | +
|
| 48 | +::: |
| 49 | + |
| 50 | +::: en |
| 51 | +Open [https://api.oplist.org/](https://api.oplist.org/) |
| 52 | + |
| 53 | +> If using a community or self-built API service, please open the corresponding address |
| 54 | +
|
| 55 | +- Choose the ``123 网盘 (OAuth2) 跳转登录` |
| 56 | +- Enter the `Client ID (ClientID/AppID)` |
| 57 | +- Enter the `Application Secret (AppKey/Secret)` |
| 58 | +- Click `Get Token` |
| 59 | + |
| 60 | +After clicking, the access token at the bottom of the interface will display `https://open-api.123pan.com/api/v1/access_token?client_id=your client ID&clientSecret=your client secret` |
| 61 | + |
| 62 | +> This is the access token |
| 63 | +
|
| 64 | +::: |
| 65 | + |
| 66 | + |
| 67 | + |
| 68 | + |
| 69 | +## 在OpenList中添加 { lang="zh-CN" } |
| 70 | + |
| 71 | +## Add in OpenList { lang="en" } |
| 72 | + |
| 73 | +### **刷新令牌** { lang="zh-CN" } |
| 74 | + |
| 75 | +### **RefreshToken** { lang="en" } |
| 76 | + |
| 77 | +::: zh-CN |
| 78 | +**留空** |
| 79 | +::: |
| 80 | +::: en |
| 81 | +**keep it empty** |
| 82 | +::: |
| 83 | + |
| 84 | +### **客户端ID** { lang="zh-CN" } |
| 85 | + |
| 86 | +### **Client ID** { lang="en" } |
| 87 | + |
| 88 | +::: zh-CN |
| 89 | +填入你的客户端ID |
| 90 | +::: |
| 91 | +::: en |
| 92 | +Enter your client ID |
| 93 | +::: |
| 94 | + |
| 95 | +### **客户端密钥** { lang="zh-CN" } |
| 96 | + |
| 97 | +### **Client Secret** { lang="en" } |
| 98 | + |
| 99 | +::: zh-CN |
| 100 | +填入你的客户端密钥 |
| 101 | +::: |
| 102 | +::: en |
| 103 | +Enter your client secret |
| 104 | +::: |
| 105 | + |
| 106 | +### **访问令牌** { lang="zh-CN" } |
| 107 | + |
| 108 | +### **AccessToken** { lang="zh-CN" } |
| 109 | + |
| 110 | +::: zh-CN |
| 111 | +填入上面获取的访问令牌 |
| 112 | +::: |
| 113 | +::: en |
| 114 | +Enter the access token obtained above |
| 115 | +::: |
| 116 | + |
| 117 | +### **Root Folder ID** { lang="en" } |
| 118 | + |
| 119 | +### **根文件夹 ID** { lang="zh-CN" } |
| 120 | + |
| 121 | +::: en |
| 122 | +The default root directory ID is: `0`<br/> |
| 123 | +Open the official website of 123 Cloud Drive, navigate to the folder you want to set, and then click the number following `homeFilePath` in the URL.<br/> |
| 124 | +For example, <https://www.123pan.com/?homeFilePath=123456><br/> |
| 125 | +The `root folder ID` of this folder is `123456`. |
| 126 | +::: |
| 127 | +::: zh-CN |
| 128 | +默认根目录ID为:`0`<br/> |
| 129 | +打开 123 网盘官网,点击进入要设置的文件夹时点击 URL 中 `homeFilePath`后面的数字<br/> |
| 130 | +如 <https://www.123pan.com/?homeFilePath=123456><br/> |
| 131 | +这个文件夹的 `根文件夹ID` 即为 `123456`<br/> |
| 132 | +::: |
| 133 | + |
| 134 | +## **The default download method used** { lang="en" } |
| 135 | + |
| 136 | +## **默认使用的下载方式** { lang="zh-CN" } |
| 137 | + |
| 138 | +::: en |
| 139 | + |
| 140 | +```mermaid |
| 141 | +--- |
| 142 | +title: Which download method is used by default? |
| 143 | +--- |
| 144 | +flowchart TB |
| 145 | + style a1 fill:#bbf,stroke:#f66,stroke-width:2px,color:#fff |
| 146 | + style a2 fill:#ff7575,stroke:#333,stroke-width:4px |
| 147 | + subgraph ide1 [ ] |
| 148 | + a1 |
| 149 | + end |
| 150 | + a1[302]:::someclass====|default|a2[user equipment] |
| 151 | + classDef someclass fill:#f96 |
| 152 | + c1[local proxy]-.alternative.->a2[user equipment] |
| 153 | + b1[Download proxy URL]-.alternative.->a2[user equipment] |
| 154 | + click a1 "../drivers/common.html#webdav-policy" |
| 155 | + click b1 "../drivers/common.html#webdav-policy" |
| 156 | + click c1 "../drivers/common.html#webdav-policy" |
| 157 | +``` |
| 158 | + |
| 159 | +::: |
| 160 | + |
| 161 | +::: zh-CN |
| 162 | + |
| 163 | +```mermaid |
| 164 | +--- |
| 165 | +title: 默认使用的哪种下载方式? |
| 166 | +--- |
| 167 | +flowchart TB |
| 168 | + style a1 fill:#bbf,stroke:#f66,stroke-width:2px,color:#fff |
| 169 | + style a2 fill:#ff7575,stroke:#333,stroke-width:4px |
| 170 | + subgraph ide1 [ ] |
| 171 | + a1 |
| 172 | + end |
| 173 | + a1[302]:::someclass====|默认|a2[用户设备] |
| 174 | + classDef someclass fill:#f96 |
| 175 | + c1[本机代理]-.备选.->a2[用户设备] |
| 176 | + b1[代理URL]-.备选.->a2[用户设备] |
| 177 | + click a1 "../drivers/common.html#webdav-策略" |
| 178 | + click b1 "../drivers/common.html#webdav-策略" |
| 179 | + click c1 "../drivers/common.html#webdav-策略" |
| 180 | +``` |
| 181 | + |
| 182 | +::: |
0 commit comments