<?php
$url = 'https://xingmian.n10.top/API/djazhi.php';
$params = [];
$url .= '?' . http_build_query($params);
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
?>
import requests
url = "https://xingmian.n10.top/API/djazhi.php"
params = {}
response = requests.get(url, params=params)
print(response.text)
const url = new URL('https://xingmian.n10.top/API/djazhi.php');
const params = {};
Object.keys(params).forEach(key => url.searchParams.append(key, params[key]));
fetch(url)
.then(response => response.text())
.then(data => console.log(data))
.catch(error => console.error('Error:', error));