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.8rn" ."Cookie:cloudreve-session=这里填写cookies; rn"."Pragma:no-cachern",));$context = stream_context_create($opts);$url = "http://这里填写域名及IP/api/v3/admin/summary";$result_data=file_get_contents($url,false,$context);print_r($result_data);?><? 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.8rn" . "Cookie:cloudreve-session=这里填写cookies; rn". "Pragma:no-cachern", ) ); $context = stream_context_create($opts); $url = "http://这里填写域名及IP/api/v3/admin/summary"; $result_data=file_get_contents($url,false,$context); print_r($result_data); ?><? 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.8rn" . "Cookie:cloudreve-session=这里填写cookies; rn". "Pragma:no-cachern", ) ); $context = stream_context_create($opts); $url = "http://这里填写域名及IP/api/v3/admin/summary"; $result_data=file_get_contents($url,false,$context); print_r($result_data); ?>
© 版权声明
THE END
暂无评论内容