接口地址:https://api.uouin.com/index.php/index/Jiance/add
返回格式:Json
请求方式:Http/Https Get请求
请求示例:https://api.uouin.com/index.php/index/Jiance/add?username=用户名&key=密钥&type=union&url=http://www.qq.com
接口说明:安全联盟认证检测,可检测域名是否是安全联盟认证网站
请求参数说明:
参数名称 | 必填 | 类型 | 说明 |
---|---|---|---|
username | 是 | string | 用户名 |
key | 是 | string | 账户密钥! |
type | 是 | string | 默认为union |
url | 是 | string | 你要检测的地址! |
返回参数说明:
参数名称 | 类型 | 说明 |
---|---|---|
code | string | 1001为可信认证 1002为未认证 |
msg | string | 系统返回提示信息! |
statu | 状态码 | 没有认证为false,已认证为true! |
data | string | 认证数据! |
count | 特殊接口次数 | 特殊接口剩余次数 |
url | 地址 | 检测的地址! |
响应文本:
{
"msg": "可信认证",
"statu": true,
"data": "认证数据",
"count": "999",
"url": "http:\/\/www.qq.com",
"code": "1001"
}
系统状态码参考:
状态码code | 说明 | |
---|---|---|
-200 | 用户名不能空! | |
-201 | key不能空! | |
-202 | url不能为空! | |
-203 | 特殊接口次数用尽! | |
-204 | 访问接口频率超过限制! | |
-205 | 未输入type类型或type错误! | |
-206 | 账户VIP接口服务已过期! | |
-207 | 用户名或key不对! | |
-208 | 非白名单IP禁止调用! | |
-209 | 账户违规被封禁! | |
-210 | 接口异常,查询失败! | |
-211 | 请登陆账户绑定手机号后再调用短网址接口! | |
1001 | 检测类接口域名正常访问! | |
1002 | 检测类接口域名已被封禁! | |
1 | 短网址类调用生成成功! |
对接代码演示:
//$url为检测的域名地址
$arr = file_get_contents("https://api.uouin.com/index.php/index/Jiance/add?username=用户名&key=密钥&type=union&url=".urlencode($url));
$json = json_decode($arr,true);
$code = $json[code];
if($code == 1002){
echo "未认证";
}else{
echo "安全联盟可信认证";
}