欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

【公众号】获取用户信息

程序员文章站 2022-07-12 11:20:36
...

接口
https://api.weixin.qq.com/cgi-bin/user/info?access_token=xxxxx&openid=xxxxx

返回数据(关注中)

{
	subscribe: 1,
	openid: "xx",
	tagid_list: [ ],
	nickname: "xx",
	sex: 1,
	language: "zh_CN",
	city: "",
	province: "",
	country: "中国",
	headimgurl: "http://thirdwx.qlogo.cn/mmopen/xxxxx",
	subscribe_time: 1609143357,
	remark: "",
	groupid: 0,
	subscribe_scene: "ADD_SCENE_QR_CODE",
	qr_scene: 0,
	qr_scene_str: ""
}

取关后的数据

{
	subscribe: 0,
	openid: "xx",
	tagid_list: [ ]
}
相关标签: 公众号