文章      动态     相关文章     最新文章     手机版动态     相关动态     |   首页|会员中心|保存桌面|手机浏览

1a48n

http://sjzytwl.xhstdz.com/com1a48n/

相关列表
文章列表
  • 暂无文章
推荐文章
实时检测WeChat微信域名防红拦截检测API,最新的腾讯域名屏蔽检测官方接口
发布时间:2024-12-20        浏览次数:21        返回列表

实时检测WeChat微信域名防红拦截检测API,最新的腾讯域名屏蔽检测官方接口

1

2、qq是2

3

4使

5

6

7

8器 IP

9

使

API

址 https://api.yemao.vip/v2/wechat_url_check

式 JSON

式 GET

例 https://api.yemao.vip/v2/wechat_url_check?app_key=的App key&url=www.qq.com

的App Key的App Key的APPKEY

app_key 是 string 的App Key的APPKEY于API

url 是 string 的url:https://www.qq.com/ 或 www.qq.com

code integer ,0非0

msg string

data.status string :ok、blocked

data.err_code integer ,0、30001、30002访、30998使访、30999

data.err_msg string

data.sub_err_msg string

JSON

//

{

"code": 10001,

"msg": "快",

"data": []

}

//

{

"code": 10004,

"msg": "试",

"data": []

}

//

{

"code": 0,

"msg": "OK",

"data": {

"status": "ok",

"err_code": 0,

"err_msg": "",

"sub_err_msg": ""

}

}

//

//访页 -

{

"code": 0,

"msg": "OK",

"data": {

"status": "blocked",

"err_code": 30002,

"err_msg": "访页",

"sub_err_msg": "容"

}

}

//

//码 -

{

"code": 0,

"msg": "OK",

"data": {

"status": "blocked",

"err_code": 30001,

"err_msg": "码",

"sub_err_msg": "页"

}

}

//使访

{

"code": 0,

"msg": "OK",

"data": {

"status": "blocked",

"err_code": 30998,

"err_msg": "使访问",

"sub_err_msg": ""

}

}

Python

# -*- coding: utf-8 -*-

import json, urllib

from urllib import urlencode

def main():

# 的App Key的APPKEY

apiToken = "*********************"

url = "https://api.yemao.vip/v2/wechat_url_check"

params = {

"url" : "www.qq.com", #

"app_key" : apiToken,

}

params = urlencode(params)

f = urllib.urlopen("%s?%s" % (url, params))

content = f.read()

res = json.loads(content)

if res:

code = res["code"]

if code == 0:

#

print res["result"]

else:

print "%s: %s" % (res["code"],res["msg"])

else:

print "request api error"

if __name__ == '__main__':

main()


PHP

<?php

try {

//的App Key的APPKEY

$apiToken = "********************************";

//

$reqUrl = "www.qq.com";

$url = sprintf("https://api.yemao.vip/v2/wechat_url_check?app_key=%s&url=%s", $apiToken, $reqUrl);

$ch = curl_init($url);

curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

curl_setopt($ch, CURLOPT_BINARYTRANSFER, true);

//止cURL(peer's certificate

//在https://curl.haxx.se/docs/caextract.html

//开php.ini:curl.cainfo=/path/to/cacert.pem

curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);

$responseBody = curl_exec($ch);

if ($responseBody === false) {

printf("Curl error: %s ", curl_error($ch));

return;

}

$responseArr = json_decode($responseBody, true);

if (json_last_error() != JSON_ERROR_NONE) {

printf("JSON:%s ", json_last_error_msg());

return;

}

if (isset($responseArr['code']) && $responseArr['code'] == 0) {

//

//$responseArr['data']['status'] :ok、blocked

//ok;blocked

printf("(%s:%s ", $reqUrl, $responseArr['data']['status']);

} else {

printf(":%s ", var_export($responseArr, true));

}

} catch(Exception $e) {

printf(":%s ", $e->getMessage());

}