收藏
回答

开放平台获取公众号的UnionID失败?

https://developers.weixin.qq.com/doc/offiaccount/User_Management/Get_users_basic_information_UnionID.html#UinonId

使用的是接口

调用请求说明 http请求方式: GET https://api.weixin.qq.com/cgi-bin/user/info?access_token=ACCESS_TOKEN&openid=OPENID&lang=zh_CN

文档示例:

{
    "subscribe": 1, 
    "openid": "o6_bmjrPTlm6_2sgVt7hMZOPfL2M", 
    "language": "zh_CN", 
    "subscribe_time": 1382694957,
    "unionid": " o6_bmasdasdsad6_2sgVt7hMZOPfL",
    "remark": "",
    "groupid": 0,
    "tagid_list":[128,2],
    "subscribe_scene": "ADD_SCENE_QR_CODE",
    "qr_scene": 98765,
    "qr_scene_str": ""
}



实际返回

{
    "subscribe"1,
    "openid""otDKE6nLHhylqtOykAH-mCrexkvE",
    "nickname""",
    "sex"0,
    "language""zh_CN",
    "city""",
    "province""",
    "country""",
    "headimgurl""",
    "subscribe_time"1695721059,
    "remark""",
    "groupid"0,
    "tagid_list": [],
    "subscribe_scene""ADD_SCENE_SEARCH",
    "qr_scene"0,
    "qr_scene_str"""
}


回答关注问题邀请回答
收藏

1 个回答

登录 后发表内容
问题标签