weixin139

用户名和KEY请到www.weixin139.com获取

<?php
$url = "https://api.weixin139.com/weixin/domain/auto_check_list?user=xxx&key=xxx&type=1";
$con = get_msg($url);
$data = json_decode($con,true);
$count = count($data)-1;
$rand = rand(0,$count);
echo $data[$rand][\'domain\'];




function get_msg($url){
        $ch = curl_init();
        curl_setopt($ch,CURLOPT_TIMEOUT,1);
        curl_setopt($ch,CURLOPT_RETURNTRANSFER, 1);
        curl_setopt($ch,CURLOPT_URL,$url);
        curl_setopt($ch,CURLOPT_SSL_VERIFYPEER,false);
        curl_setopt($ch,CURLOPT_SSL_VERIFYHOST,false);
        $data = curl_exec($ch);
        if($data){
            curl_close($ch);
            return $data;
        }else {
            $error = curl_errno($ch);
            curl_close($ch);
            return false;
    }
}

来源:http://www.weixin139.com/api_help.html

分类:

技术点:

相关文章:

  • 2021-08-04
  • 2021-06-26
  • 2022-01-23
  • 2021-07-04
  • 2021-06-12
  • 2021-07-03
  • 2022-01-15
  • 2021-11-18
猜你喜欢
  • 2021-12-21
  • 2021-12-12
  • 2021-11-28
  • 2022-02-07
  • 2022-01-27
  • 2021-11-29
  • 2021-05-02
相关资源
相似解决方案