Roka 2019-12-06
PHP代码实例如下:
//开发者后台生成的appid $appId = ‘‘; //开发者后台生成的appsecret $appSecret = ‘‘; //需要解析的url $url = ‘‘; $param = [ ‘appid‘ => $appId, ‘appsecret‘ => $appSecret, ‘url‘ => $url, ]; //得到请求的地址:https://api-sv.videoparse.cn/api/video/normalParse?appid=2m3Ju99MPXrNtkgH&appsecret=bNG3JYjT83qp4cib&url=http%3A%2F%2Fv.douyin.com%2Fa2X5ab%2F $apiUrl = ‘https://api-sv.videoparse.cn/api/video/normalParse?‘.http_build_query($param); $videoInfo = file_get_contents($apiUrl); print_r($videoInfo);