Discussion on WeChat development

Source: Internet
Author: User
Description of the public platform developer documentation: [color #33 CCCC] when a common user sends a message to a public account, the server sends the XML packet of the POST message to the URL entered by the developer. The structure of the XML data packet for pushing messages is as follows. If the server fails to receive the response within five seconds, the connection will be disconnected and the request will be re-initiated. a total of three re-tries are performed on message deduplication. msgid is recommended for deduplication. Public platform developer documentation description:
[Color = #33 CCCC] when a common user sends a message to a public account, the server sends the XML packet of the POST message to the URL entered by the developer. The structure of the XML data packet for pushing messages is as follows.
If the server fails to receive the response within five seconds, the connection will be disconnected and the server will initiate a new request. a total of three retries will be made.
Msgid is recommended for message deduplication.
If the server cannot process and reply within five seconds, it can directly reply to an empty string. the server will not process the request and will not initiate a retry.
Text message

 
  
  toUser
   
  fromUser
    
  
   1348831860
   
  text
   
  this is a test
   
  
   1234567890123456
   
 

Parameter description
ToUserName developer id
FromUserName sender account (an OpenID)
CreateTime message creation time (integer)
MsgType text
Content text message Content
MsgId message id, 64-bit integer [/color]
This means that the developer accepts the xml data packet sent from the server POST and sends it back to the server in the same xml data format after processing.
When sending the data back to the server, the ToUserName and FromUserName remain unchanged? What is the impact of changing Content? is it sent to the sender's account?

The above is a detailed discussion of the simple issues of development. For more information, see other related articles on php Chinese network!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.