去水印小程序解析接口分享php源码
小程序解析接口请求方式调用接口示例:
$url = ‘https://v.douyin.com/2Jfw4Mo/’;
//请把此处的uid和token换成你自己的 这是GET请求方式
$api=https://eeapi.cn/api/video/32886DD5A6A23C9D8E6B9C2AFDC9C2DC6C1ABF7FBC6E2EF9C4/57/?url=′.urlencode(url);
$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, $api);
curl_setopt($curl, CURLOPT_HEADER, 0);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false); //这个是重点
d a t a = c u r l e x e c ( data = curl_exec( data=curlexec(curl);
curl_close($curl);
a r r d a t a = j s o n d e c o d e ( arrdata = json_decode( arrdata=jsondecode(data,true); //返回的是json
print_r($arrdata);