java 获取微信公众号粉丝的openId

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

java 获取微信公众号粉丝的openId

上一篇:Photoshop 一个透明的玻璃花瓶


下一篇:Illustrator(AI)模仿创建一个3D楼层户型图效果实力教程