Public platform message interface Little Yellow Chicken Little cheap chicken Robot
By http://www.cnblogs.com/txw1958/
Original article: http://www.cnblogs.com/txw1958/archive/2013/02/07/weixin-if8-simsimi.html
This system tutorial uses the weather God (weathergod account) on the public platform to query geographical locations, including weather names, Pinyin, simple spelling, area codes, zip codes, and voice trigger modes of nearly 2500 cities in China, the image recognition technology and speech recognition function (developed) are used as examples to explain the interface development process. You are welcome to follow this account and check the local weather. For the QR code, see the bottom.
I. Simulate request data
Let's take a look at the web page of chicken
We can achieve this by simulating HTTP requests. The preceding dialog packet capture is as follows:
Message sending package
Message receiving package:
Based on the preceding package, initiate a request as follows:
2. Interconnection
Little Yellow Chicken can also be called using APIs, but the free time is limited. The code is basically the same as above, so it won't be much written.
Iii. demonstration results
Bytes --------------------------------------------------------------------------------------------------------------------------
FollowBean cube(Account beancube) method:
1. Enter the following paths in sequence:Friends> Add friends->Search number, InputBeancube, Case Insensitive. ClickSearchAnd then clickFollow.
2. Scan the QR code:
FollowBean cube(Account beancube) method:
1. Enter the following paths in sequence:Friends> Add friends->Search number, InputBeancube, Case Insensitive. ClickSearchAnd then clickFollow.
2. Scan the QR code: