Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Interfaces and parameters of how to receive text messages in Wechat Development

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

This article will explain in detail the interfaces and parameters of how to receive text messages in Wechat development. The editor thinks it is very practical, so I share it with you as a reference. I hope you can get something after reading this article.

When an ordinary Wechat user sends a message to a public account, the Wechat server packets the XML of the POST message to the URL filled in by the developer.

Please note:

1. For retry message weighting, it is recommended to use msgid.

2. If the Wechat server does not receive a response within five seconds, it will disconnect and reinitiate the request for a total of three retries. If the server cannot guarantee to process and reply within five seconds

You can reply to the empty string directly, the Wechat server will not do anything about it, and will not initiate a retry. For more information, see "send message-passive reply message".

3. If the developer needs to respond immediately to the user's message within 5 seconds, you can respond to the user passively by using the "send message-passive reply message" interface.

Message encryption is set up at the developer center on the official website of the public platform. When encryption is enabled, the messages sent by the user and the messages replied by the developer will be encrypted (but the developer through customer service

If you send a message to the user in the form of API calls such as an interface, it will not be affected. For more information on message encryption and decryption, see "send message-passive reply message encryption and decryption instructions".

The push XML packet structure of a text message is as follows:

1348831860 1234567890123456

This is the end of the article on "how to receive text message interfaces and parameters in Wechat development". I hope the above content can be of some help to you, so that you can learn more knowledge. please share it for more people to see.

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.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report