## 效用简述
对于第三方开发者针对阿里云盘开发的应用,大多需要使用refresh_token,譬如[把阿里云盘变为本地盘](https://gotarget.top/archives/%E4%BA%91%E7%9B%98%E6%8B%93%E5%B1%95%E4%B8%BA%E6%9C%AC%E5%9C%B0%E7%9B%98md)的CloudDrive,以及在linux上吧网盘文件投射到web端供以下载和远程调用的sharelist,都是需要refresh_token的支持。因而,本教程还是有一定意义的。
## 步骤简述
![image-20220120094159502](https://static.iculture.cc/wp-content/uploads/2022/01/20220120172242169.png?x-oss-process=image/auto-orient,1/interlace,1/quality,q_90/watermark,image_cHVibGljL2xvZ28ucG5nP3gtb3NzLXByb2Nlc3M9aW1hZ2UvcmVzaXplLFBfMTA,x_10,y_10)
## 步骤详解
### 1、登录阿里云盘
<img src="https://static.iculture.cc/wp-content/uploads/2022/01/20220120172112205-1024x576.png?x-oss-process=image/auto-orient,1/interlace,1/quality,q_90/watermark,image_cHVibGljL2xvZ28ucG5nP3gtb3NzLXByb2Nlc3M9aW1hZ2UvcmVzaXplLFBfMTA,x_10,y_10" style="zoom:50%;" />
### 2、打开开发工具
<img src="https://static.iculture.cc/wp-content/uploads/2022/01/20220120172121976-1024x576.png?x-oss-process=image/auto-orient,1/interlace,1/quality,q_90/watermark,image_cHVibGljL2xvZ28ucG5nP3gtb3NzLXByb2Nlc3M9aW1hZ2UvcmVzaXplLFBfMTA,x_10,y_10" style="zoom:50%;" />
### 3、进入Application
<img src="https://static.iculture.cc/wp-content/uploads/2022/01/20220120172131305-1024x576.png?x-oss-process=image/auto-orient,1/interlace,1/quality,q_90/watermark,image_cHVibGljL2xvZ28ucG5nP3gtb3NzLXByb2Nlc3M9aW1hZ2UvcmVzaXplLFBfMTA,x_10,y_10" style="zoom:50%;" />
### 4、 进入Local Storage
<img src="https://static.iculture.cc/wp-content/uploads/2022/01/20220120172142724-1024x576.png?x-oss-process=image/auto-orient,1/interlace,1/quality,q_90/watermark,image_cHVibGljL2xvZ28ucG5nP3gtb3NzLXByb2Nlc3M9aW1hZ2UvcmVzaXplLFBfMTA,x_10,y_10" style="zoom:50%;" />
### 5、选中token
<img src="https://static.iculture.cc/wp-content/uploads/2022/01/20220120172204184-1024x570.png?x-oss-process=image/auto-orient,1/interlace,1/quality,q_90/watermark,image_cHVibGljL2xvZ28ucG5nP3gtb3NzLXByb2Nlc3M9aW1hZ2UvcmVzaXplLFBfMTA,x_10,y_10" style="zoom:50%;" />
### 6、找到reflash_token
![image-20220120100533329](https://static.iculture.cc/wp-content/uploads/2022/01/20220120172216396-1024x576.png?x-oss-process=image/auto-orient,1/interlace,1/quality,q_90/watermark,image_cHVibGljL2xvZ28ucG5nP3gtb3NzLXByb2Nlc3M9aW1hZ2UvcmVzaXplLFBfMTA,x_10,y_10)
获取阿里云盘的refresh_token方法