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>