In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-29 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
The purpose of this article is to share with you the content of the example analysis of the intelligent reply for the development of Wechat public platform interface for php. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.
The details are as follows:
Intelligent reply is based on the user input conditions to feedback the results of the user, this editor has done a letter to sort out some examples for your reference, more complete is mainly introduced on the development side.
Since the launch of Wechat, it has really become a hit, and the introduction of the payment function has pushed Wechat to an unparalleled height, and then people who apply for Wechat Subscription account or service number also begin to keep up with each other. Next I will give you a brief introduction to the Wechat public platform development interface.
First go to the Wechat public platform to apply for an account, and then follow the instructions step by step. In the choice of Subscription account and service number, individuals can only apply for Subscription account, and limited to the basic functions, while enterprises can apply for both. The difference between Subscription account and the service number is that Subscription account can send a mass message every day, while the service number can only send one message a month; Subscription account needs Wechat authentication to customize the menu (enterprises can certify, certification 300 yuan once). The service number has a custom menu at the beginning, but it can also be authenticated, and the service number can upgrade advanced functions directly after certification. More differences please Baidu.
I applied for Subscription account because it was an individual. All you have to do is pass a picture of a person with an ID card, though it's a little silly. Then wait for the information registration review (about a day). After passing, go directly to the Wechat public platform, click the feature to enter the advanced features, close the editing mode, turn on the development mode, then download the demo provided by Wechat, and decompress it, just one file: wx_sample.php, with the code as follows:
In fact, it is authentication and then sends a message. Transfer the file to your server, I put it in the root directory, and then modify the url and token values in development mode. Suppose the url used here is https://www.jb51.net/wx_sample.php define token, which is the token of the above token. This can be changed. As long as the two sides are consistent, the default is weixin. Then click submit, which will prompt you to succeed. Then scan the number you applied for and send a message, and you will find that there is no response. At this time, we need to make a small adjustment, turn off the method of calling authentication in the API document, and enable the method of handling reply messages:
/ / $wechatObj- > valid (); $wechatObj- > responseMsg ()
At this time, you send another message, and you will receive: Welcome to wechat world!
Will you receive a message immediately after paying attention to some Subscription account or service numbers? What reply 1, how; reply 2, how and so on.
Take my own blog, for example, my focus is:
Thank you for your interest in AndyYang personal blog Wechat Assistant.
Reply to [1] and return two latest articles
Reply [2] and return two popular articles
Reply [3] and return two hot reviews.
Reply to [4] and return two latest technical articles
Reply [5] and return two newly written articles
Reply to two other articles that return search keywords
More wonderful content can be found in www.jb51.net. Dear ones, please support me a lot. Thank you.
So how do you achieve this? Go directly to the code:
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.