信息查询
查询QQ等级等

接口地址: http://xiaojieapi.cn/API/qqdj.php

返回格式: JSON/TEXT

请求方式: GET/POST

请求示例: http://xiaojieapi.cn/API/qqdj.php?qq=2772655946

请求参数说明:

名称 必填 类型 说明
jsonString接口返回格式
qqString查询QQ号

返回参数说明:

名称 类型 说明
codeString状态码
msgString操作状态
qqString查询qq号
nameStringQQ昵称
AvatarStringQQ头像
gradeStringQQ等级
activeString活跃时间
upgradeString剩余升级天数
rankingString等级排行
timeString最后更新时间

返回示例:

{
    "code": "1000",
    "msg": "成功",
    "qq": "2772655946",
    "name": "小杰",
    "Avatar": "http:\/\/qlogo3.store.qq.com\/qzone\/2772655946\/2772655946\/100",
    "grade": "37",
    "active": "1577",
    "upgrade": "19",
    "ranking": "未入榜",
    "time": "2020-01-20 10:46:23"
}

状态码说明:

名称 类型 说明
1000String发布成功!
1001String参数错误!
1002String获取信息失败!

iapp代码:

t()
{
hs("http://xiaojieapi.cn/API/qqdj.php?qq=2772655946",url)
ufnsui()
{
json(url,text)
json(text,"get","qq",qq)
json(text,"get","name",name)
json(text,"get","Avatar",Avatar)
json(text,"get","grade",grade)
json(text,"get","active",active)
json(text,"get","upgrade",upgrade)
json(text,"get","ranking",ranking)
json(text,"get","time",time)
ss("QQ:"+Registrar+"\n昵称:"+Contact+"\n头像:"+thecompany+"\n等级:"+mailbox+"\n活跃时间:"+phone+"\n剩余升级天数:"+Created+"\n排行榜:"+expiredate+"\n最后更新时间:"+dns+"",text)
syso(text)
}
}

php代码:

<?php
$qq=$_REQUEST["qq"];
$curl=curl_init();
curl_setopt($curl,CURLOPT_URL,"http://xiaojieapi.cn/API/qqdj.php?qq=".$qq."");
curl_setopt($curl,CURLOPT_RETURNTRANSFER,1);
$return=curl_exec($curl);
curl_close($curl);
$return=json_decode($return,true);
echo "qq号:".$return["qq"]."\n";
echo "QQ昵称:".$return["name"]."\n";
echo "QQ头像:".$return["Avatar"]."\n";
echo "QQ等级:".$return["grade"]."\n";
echo "活跃时间:".$return["active"]."\n";
echo "剩余升级天数:".$return["upgrade"]."\n";
echo "等级排行:".$return["ranking"]."\n";
echo "最后更新时间:".$return["time"]."\n";
?>