登录

腾讯api.weixin.qq.com 变ip

Html+Css 热门
0 2892
yle="max-width:100%;overflow-x:auto;"><?php

//定义url

$url='https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=appid&secret=secret';

 //file_get_contents函数远程读取数据

$lines_string=file_get_contents($url);

$lines_string = json_decode($lines_string);

$urls = 'https://api.weixin.qq.com/cgi-bin/get_api_domain_ip?access_token='.$lines_string->access_token;

$lines_strings=file_get_contents($urls);

print_r($lines_strings);

die;


正常返回:

{"ip_list":["101.89.47.18""101.91.34.103""109.244.129.223""109.244.145.152""109.244.184.250""112.60.20.154""116.128.170.42""116.128.184.169""117.144.228.18""117.144.228.62""119.147.6.237""120.232.65.161""157.148.36.94""157.255.218.109""183.2.143.222""203.205.239.82""203.205.239.94""81.69.216.43""110.241.176.176"]}

yle="max-width:100%;overflow-x:auto;">


发表评论

0 个回复