Chapter 5 has already talked about how to handle messages sent by users. This chapter will talk about how to respond to user requests. Novices must be confused when they see this title. Don’t be confused. The interface of WeChat is just like this. When replying to pictures, music, voice, etc., we need to upload our media files to the WeChat server before we can use it. I don’t know what the considerations are for this approach, and the message body formats sent by the customer service interface and the group sending interface are actually different when replying to messages to users. It is estimated that these interfaces were not written by the same person, and the code was not unified. We loser developers can only complain. Before talking about the upload and download interface, we need to first talk about the access_token acquisition method. In the process of WeChat interface development, access_token is crucial. It is the globally unique ticket of the official account. The official account needs to use access_token when calling each interface. Developers need to store it properly. At least 512 characters of space must be reserved for access_token storage. The validity period of access_token is currently 2 hours and needs to be refreshed regularly. Repeated acquisition will cause the last access_token to become invalid. Need to note
1. WeChat development passive reply and upload and download files
##Introduction: This chapter will talk about how to respond to user requests. Novices must be confused when they see this title. Don’t be confused. The interface of WeChat is just like this. When replying to pictures, music, voice, etc., we need to upload our media files to the WeChat server before we can use it. I don’t know what the considerations are for this approach, and the message body formats sent by the customer service interface and the group sending interface are actually different when replying to messages to users. It is estimated that these interfaces were not written by the same person, and the code was not unified. We loser developers can only complain.
2. Use Java to develop WeChat public Detailed introduction to account reception and passive reply to ordinary messages
##Introduction: This article mainly introduces Java development of WeChat For relevant information on public accounts receiving and passively replying to ordinary messages, friends in need can refer to
3.
The WeChat test account successfully tested the interface in the "WeChat public platform interface debugging tool" But what could be the reason for being unable to passively reply to user messages?
Introduction: I applied for a WeChat test account developed by WeChat and it has been successfully configured and verified on the management test account page. When you want to test the interface of "passive reply to user messages", the message can be returned correctly in the WeChat public platform interface debugging tool, as shown below: WeChat's developer documentation also says: Once the following situations are encountered,...4.
How to use PHP to call WeChat API and use WeChat for notification applications
Introduction: Compared with the most commonly used WeChat has unparalleled advantages in SMS and email notification methods: fast, free, and especially suitable for alarm notification applications. However, WeChat does not provide a ready-made API interface to send messages to friends, and the public platform can only respond passively. So how can you take the initiative to send messages? The answer lies in the WeChat web version. Carefully observe the WeChat web page[Related Q&A recommendations]:
java - How to use the WeChat public account to actively send a messagephp - The text of the passive reply on the WeChat official account cannot be wrapped java - About WeChat development - automatic reply message issue after following php - WeChat passive reply message is invalidphp - WeChat passive reply returns a picture. A paragraph of text. Unstable, sometimes there are few pictures in the reply, sometimes there are few words in the reply
The above is the detailed content of Share several articles on passive responses. For more information, please follow other related articles on the PHP Chinese website!