This is a creation in Article, where the information may have evolved or changed.
Great, Golang is also very good, I have a small plan, used to control our smart home panel switch and so on. Just also in learning Golang, take it to practice practiced hand.
Specifies that the access interface must be 80 port HTTP service, each to the public account of the message, the platform will be post to the agreed interface, the URL is as follows
Http://www.wadahana.com/weixin.goapp?signature=41a1e2aec5e0bb6b8686ee361e5b305cf5c04f13&echostr= 1000737891698810841×tamp=1407852505&nonce=1183067877
The signature check we need to do is simply to sort the timestamp,nonce and tokens that are submitted on the Weixin platform, and then stitch them together and take them directly to Sha, if they are equal to signature, It indicates that the POST request is dropped by the platform, not equal, do not know which puppy to come, verify the success, the content of the ECHOSTR to the platform intact.
Then we'll just have to go to the code.