接口地址: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=wx&url=http://www.qq.com
接口说明:用于检测域名在微信是否正常打开,以及被微信拦截后的报毒原因
请求参数说明:
参数名称 | 必填 | 类型 | 说明 |
---|---|---|---|
username | 是 | string | 用户名 |
key | 是 | string | 账户密钥! |
type | 是 | string | 默认为wx |
url | 是 | string | 你要检测的地址! |
返回参数说明:
参数名称 | 类型 | 说明 |
---|---|---|
code | string | 系统返回状态码,1001为正常 1002为拦截 |
msg | string | 系统返回提示信息! |
statu | 状态码 | 拦截为false,正常为true! |
reason | string | 拦截原因,如域名是拦截的则返回! |
url | 地址 | 检测的地址! |
响应文本:
{
"msg": "域名正常",
"statu": true,
"url": "http:\/\/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=wx&url=".urlencode($url));
$json = json_decode($arr,true);
$code = $json[code];
if($code == 1002){
echo "域名已被封禁";
}else{
echo "域名正常";
}