https://api.8k8.im/api/xy/xhzw
https://api.8k8.im/api/xy/xhzw
| 参数名 | 类型 | 必填 | 说明 |
|---|---|---|---|
| key | string | 是 | 你的key |
| phone | string | 是 | 由远程参数映射自动添加 |
| 状态码 | 说明 |
|---|
<?php
$url = 'https://api.8k8.im/api/xy/xhzw';
$params = ['key' => 'YOUR_VALUE', 'phone' => 'YOUR_VALUE', ];
$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://api.8k8.im/api/xy/xhzw"
params = {
"key": "YOUR_VALUE",
"phone": "YOUR_VALUE",
}
response = requests.get(url, params=params)
print(response.text)const url = new URL('https://api.8k8.im/api/xy/xhzw');
const params = {
"key": "YOUR_VALUE",
"phone": "YOUR_VALUE",
};
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));| 参数名 | 类型 | 说明 | 参数示例 |
|---|---|---|---|
| success | bool | 是否请求成功 true or false | true |
| code | int | 请求状态码 200或其他 | 200 |
| msg | string | 请求说明 | 请求成功 |
| data | string | 请求数据集 | null |