
Cloudreve后台是有一些api的,但是貌似官方也没有公布出来,我就提取了一个,但是需要提取一下后台账户的cookies。
我提取的就是图上的一些api,其实很简单的,请求代码如下。
<? header('content-type:application/json;charset=utf-8'); $opts = array ( 'http' => array ( 'method' => 'GET', 'header'=> "Accept:text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8\r\n" . "Cookie:cloudreve-session=这里填写cookies; \r\n". "Pragma:no-cache\r\n", ) ); $context = stream_context_create($opts); $url = "http://这里填写域名及IP/api/v3/admin/summary"; $result_data=file_get_contents($url,false,$context); print_r($result_data); ?>
还没有评论,来说两句吧...