<?php
$videoId = 'opening_sample'; // 使用一个测试视频
$url = 'http://localhost/yangquan_wedding/api/api_router.php?path=video/asset/' . $videoId;

$ch = curl_init($url);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
$httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);

echo "HTTP状态码: $httpCode\n";
echo "DELETE响应:\n";
echo $response;
echo "\n";
?>