阿里云盘 文件列表 PHP版

阿里云盘官网:https://aliyundrive.com/

使用说明

其实就是2个API,实际源码也才几十KB,因使用了thinkphp导致文件变大;
使用方式也遵循thinkphp,需要设置public为网站访问目录,nginx需要设置伪静态(宝塔伪静态选择thinkphp)

上传之后首先打开public\static\token.json,在里边填写refresh_token,其余的不用管,然后手动访问一次:http://域名/cron ,后边需要设置一个计划任务,定时2小时访问一次,用于更新access_token

refresh_token获取方式:

登录阿里云盘。打开F12在Application->local Storage里即可找到

源码下载:Drive 1.2

转自:https://www.hostloc.com/thread-790105-1-1.html

Drop Your Comment