微信分享传播的时候,域名经常被拦截,有的时候我们购买的域名直接就是被拦截的等等,为了避免大家走弯路,今天告诉分享给大家一个我正在使用的的微信域名检测工具
接口地址:
/wxymjc?url_long=
接口说明:
把上面的微信域名检测api接口的""替换成需要检测的链接即可使用!
返回说明:
{"status":1,"msg":"域名正常"}{"status":0,"msg":"域名被封"}调用代码
PHP调用演示:
$url = '';$api_url = '/wxymjc?url_long?url_long=;$short_url = file_get_contents($api_url);echo $short_url;JAVA调用演示:
public static void main(String path[]) throws Exception {URL u = new URL("/wxymjc?url_long?url_long=");InputStream in = u.openStream();ByteArrayOutputStream out = new ByteArrayOutputStream();try {byte buf[] = new byte[1024];int read = 0;while ((read = in .read(buf)) > 0) {out.write(buf, 0, read);}} finally {if ( in != null) {in .close();}}byte b[] = out.toByteArray();System.out.println(new String(b, "utf-8"));}Python调用演示:
import urllib, urllib2, syshost = ''path = '/wxymjc?url_long'method = 'GET'querys = 'url_long=http%3A%2F%'bodys = {}url = host + path + '?' + querysrequest = urllib2.Request(url)response = urllib2.urlopen(request)content = response.read()if (content):print(content)
文章出自:/bzmwh9.html 转载请注明出处
如果觉得《最新的微信域名屏蔽检测API接口分享(含PHP JAVA Python等文档调用代码)》对你有帮助,请点赞、收藏,并留下你的观点哦!