实用工具类
phonexx & v1

2024-09-17 05:30:00

Start Me
Pasta

累计调用:276

头像
客源
开源

专注于企业级API开发与架构设计,5年以上开发经验

手机号码测吉凶

GET

算命先生网手机号码测吉凶软件主要是通过周易数理来进行手机号码测吉凶,揭示你手机号码隐藏的秘密,预测手机号码数理吉凶,财运吉凶。并给出手机号码吉凶分析、数理评分和对主人个性的潜在影响等等。

接口地址: https://api.qster.top/API/v1/phonexx
接口示例: https://api.qster.top/API/v1/phonexx/?phone=10086

请求参数

参数名 类型 必填 说明
phone string 手机号
qskey string 申请临时密钥

响应参数

参数 说明
msg 响应说明
data.phone 手机号
data.lishu 理数
data.yuns 运势
data.anshi 暗示信息
data.shiyun 诗云
data.star 幸运星
data.value 手机号价值
data.xishu 个性系数
data.xingge 主人性格
data.biaoxian 具体表现
code 200正常400失败 查看更多

代码示例

<?php
// 要调用的 URL
$url = "https://api.qster.top/API/v1/phonexx";

// 参数数组
$params = [
"phone" => "手机号",
"qskey" => "0",
];

// 使用 http_build_query 将参数转换为查询字符串
$queryString = http_build_query($params);

// 在 URL 中添加查询字符串
$finalUrl = $url . '?' . $queryString;

// 使用 file_get_contents 获取内容
$response = file_get_contents($finalUrl);

// 输出响应
echo $response;
?>

import requests

url = "https://api.qster.top/API/v1/phonexx";
params = {
"phone" : "手机号",
"qskey" => "0"
}
response = requests.get(url, params=params)
print(response.text)

function fetchData(url, params) {

const queryString = Object.keys(params)
.map(key => `${encodeURIComponent(key)}=${encodeURIComponent(params[key])}`)
.join('&');
const fullUrl = `${url}?${queryString}`;

fetch(fullUrl)
.then(response => response.text())
.then(data => {
const resultElement = document.createElement('pre');
resultElement.textContent = data;
document.body.appendChild(resultElement);
})
.catch(error => console.error('Error fetching data:', error));
}

// 示例用法
const url = "https://api.qster.top/API/v1/phonexx";
const params = {
"phone" : "手机号",
"qskey" => "0"
};
fetchData(url, params);

在线调试