curl -X GET "https://www.vxras.com/api/v1/bilibili"?quality=&keyword=&category=&count=
<?php
$url = "https://www.vxras.com/api/v1/bilibili";
$data = array(
"quality" => "",
"keyword" => "",
"category" => "",
"count" => ""
);
$headers = array(
);
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($data));
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
?>
// 使用 Fetch API
const url = "https://www.vxras.com/api/v1/bilibili";
const data = {
"quality": "",
"keyword": "",
"category": "",
"count": ""
};
const options = {
method: "GET",
headers: {
},
body: JSON.stringify(data),
};
fetch(url, options)
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error("Error:", error));
# 使用 requests 库
import requests
url = "https://www.vxras.com/api/v1/bilibili"
data = {
"quality": "",
"keyword": "",
"category": "",
"count": ""
}
headers = {
}
response = requests.post(url, data=data, headers=headers)
print(response.json())
暂无评论内容