Third-party platforms receive messages from public accounts and fans

Source: Internet
Author: User

Third-party platforms receive messages from public accounts and fans

1: logon public account

Developer Center-configuration item-Server Configuration

(1) URL server address: Enter the address of your own platform,

Example: http://w.wizincloud.com/langlang_manage/wechat? Appid = wxd86103f87aa0f7c0

It can be received using a restful interface or servlet. Add a parameter appid to identify the public account's fan message.


(2) Token. The signature verification mechanism is used here.

The CoreServlet doGet authentication mechanism is used.


(3) randomly generate EncodingAESKey


(4) Enable Configuration

2: Define servlet




3: deploy the platform online

At this time, fans send messages to the public account, and our platform can receive messages from fans through doPost.

Send messages to fans. Background logs:

User enter CoreServlet-doPost

Appid = wxd86103f87aa0f7c0


RespMessage = <xml>
<ToUserName> <! [CDATA [oOWLst36snTPKQvPxxVKmzttZKGA]> </ToUserName>
<FromUserName> <! [CDATA [gh_b2718f47a283]> </FromUserName>
<CreateTime> <! [CDATA [1432025321979]> </CreateTime>
<MsgType> <! [CDATA [text]> </MsgType>
<MsgId> <! [CDATA [0]> </MsgId>
<Content> <! [CDATA [123456]> </Content>
</Xml>

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.