## PHP代码示例一 ``` $link = 'https://v.douyin.com/tSa2Ax/'; //请把此处的key和token换成你自己的 $api = 'https://admin.feeprint.com/dsp?key=46FDEDB583EKZI42D26361&token=022323YY74134RMEWSL&url=' . urlencode($link); $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);//这个是重点 $data = curl_exec($curl); curl_close($curl); //我这里是给他转换成数组了 $arrdata = json_decode($data,true); print_r($arrdata); ``` ## PHP代码示例二 ``` $api = "https://admin.feeprint.com/dsp"; //视频解析接口 $key = "46FDEDB583EKZI42D26361"; //这里改成你自己的 接口客户ID $token = "022323YY74134RMEWSL"; //这里改成你自己的 接口秘钥 //参数 $url = "https://vt.tiktok.com/rDHxU3/"; function file_get_contents_post($url, $post) { $options = array( "http"=> array( "method"=>"POST", "header" => "Content-type: application/x-www-form-urlencoded", "content"=> http_build_query($post) ), ); $result = file_get_contents($url,false, stream_context_create($options)); return $result; } $param = array("url" => $url, "key" => $key, "token" => $token); $data = file_get_contents_post($api, $param); var_dump($data); ```