java 获取微信服务器ip

public static String getIp(String accessToken){
		String result = null;
		String requestUrl = "https://api.weixin.qq.com/cgi-bin/getcallbackip?access_token=ACCESS_TOKEN";
		requestUrl = requestUrl.replace("ACCESS_TOKEN", accessToken);
		System.out.println(requestUrl);
		JSONObject jsonObject = WeixinUtil.httpRequest(requestUrl, "GET", null);
		if(null != jsonObject){
			System.out.println(jsonObject);
			result = jsonObject.getString("ip_list")+"";
		}
		return result;
	}

java 获取微信服务器ip

上一篇:NSNotificationCenter 传对象


下一篇:微信分享配置回调Activity中launchMode="singleInstance"的一个坑