Public platform Message Interface Development (8) Xiaohuang chicken (Xiaoji chicken) robot
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 --------------------------------------------------------------------------------------------------------------------------
FollowWeather God(Account WeatherGod) method:
1. enter the following paths in sequence:Friends> Add friends->Search number, InputWeatherGod, Case insensitive. clickSearchAnd then clickFollow.