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

CodePudding user response:

The
reference 3/f & lt; Span style="color: # 4788 c7" & gt; Qq_22675299 & lt;/span> Response:
by request.

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 a platform of the reply message directly according to the above request for
& lt; Br/& gt; Bosses, you can also see it, I took a WeChat public, background shows no auto reply, then I set up an automatic reply, the result will come out two focus on auto reply, is a set of myself, is a reply with a user nickname, and before the administrator to add a link, but the link already out of date, I don't change again, the consult about how to find the deleted??????

CodePudding user response:

User attention for the first time, can only get the openId, if you have authorized after login to your public page, to get a nickname, the basic information, such as head
  • Related