WeChat public platform message interface development (8) xiaohuang chicken (Xiaoji chicken) Robot

Source: Internet
Author: User

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:

 

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.