最新PHP蓝奏云直链API接口源代码
<?php
$url=base64_decode('aHR0cHM6Ly9hcGkuZHp6dWkuY29tL2FwaS9sYW56b3VqeA==').'?url='.$_GET['url'].'&pwd='.$_GET['pwd'].'&type='.$_GET['type'];
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);
$output = curl_exec($ch);
curl_close($ch);
echo $output;
?>
GET
参数:
url:蓝奏云链接,不为空
pwd:密码,可为空
type:txt只输出下载链接,留空则json格式输出