Home > Mobile > How to implement WeChat public auto reply after users with user's nickname?
How to implement WeChat public auto reply after users with user's nickname?
Time:10-11
How to implement WeChat public auto reply after users with user's nickname?
Consult everybody?
CodePudding user response:
It is a focus on auto reply with a nickname after Demo
Subscription and services can be stated above, but I watched WeChat permission document Only certification service number have OAuth2.0 authorization
CodePudding user response:
I would also like to ask the same question, wait for god to answer!
CodePudding user response:
Through request access.
Developers can get user basic information through OpenID, please use the HTTPS protocol, Interface call request description The HTTP request method: GET https://api.weixin.qq.com/cgi-bin/user/info? Access_token=access_token & amp; Openid=OPENID& Lang=zh_CN
Under normal circumstances, WeChat will return the following JSON packet to the public number: { "Subscribe" : 1, "The openid" : "o6_bmjrPTlm6_2sgVt7hMZOPfL2M," "Nickname", "Band", "Sex" : 1, "Language" : "zh_CN", "City", "guangzhou", "Province", "guangdong", "Country" : "China," "Headimgurl" : "http://wx.qlogo.cn/mmopen/g3MonUZtNHkdmzicIlibx6iaFqAc56vxLSUfpb6n5WKSYVY0ChQKkiaJSgQ1dZuTOgvLLrhJbERQQ4eMsv84eavHiaiceqxibJxCfHe/0", "Subscribe_time" : 1382694957, "Unionid" : "o6_bmasdasdsad6_2sgVt7hMZOPfL ""Remark" : ", " "Groupid" : 0 }
Put your json. Get string (" nickname "), set the encoding, get followers username In the user name as a text message passive reply to followers went
Don't need through the request, the request is at the time of web access to, for example, in the public platform, click on the button to enter a page, the page needs to be the user name, only need to request If it is platform reply message directly according to the above request