手机号补齐
号码生成补齐API-自定义,前几后几中间自选补齐,一秒生成,方便快捷,每行一个,方便导入操作,可选择直接生成通讯录格式
接口信息
接口状态: 正常
总调用: 668
请求方法: GET
需要登录
请求地址:
https://wsapi.top/API/hmsc.php
请求参数
| 参数名 | 类型 | 必填 | 说明 |
|---|---|---|---|
| apikey | string | 否 | |
| q | integer | 否 | 前面的数字 |
| h | integer | 否 | 后面的数字 |
| w | integer | 否 | 中间补齐位数,1-5数字 |
| type | string | 否 | 可选hm/txl,对应纯号码/通讯录 |
在线测试
此处将显示接口返回结果...
调用示例
<?php
$url = 'https://wsapi.top/API/hmsc.php';
$params = ['apikey' => 'YOUR_VALUE', 'q' => 'YOUR_VALUE', 'h' => 'YOUR_VALUE', 'w' => 'YOUR_VALUE', 'type' => '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://wsapi.top/API/hmsc.php"
params = {
'apikey': 'YOUR_VALUE',
'q': 'YOUR_VALUE',
'h': 'YOUR_VALUE',
'w': 'YOUR_VALUE',
'type': 'YOUR_VALUE',}
response = requests.get(url, params=params)
print(response.text)
const url = new URL('https://wsapi.top/API/hmsc.php');
const params = {
'apikey': 'YOUR_VALUE',
'q': 'YOUR_VALUE',
'h': 'YOUR_VALUE',
'w': 'YOUR_VALUE',
'type': 'YOUR_VALUE',};
Object.keys(params).forEach(k => url.searchParams.append(k, params[k]));
fetch(url).then(r => r.text()).then(d => console.log(d));