Micro-credit public platform development model detailed graphics and text tutorial

Source: Internet
Author: User
Tags php sample code

If you have any questions or omissions in this tutorial please leave a message or contact me directly for correction.

First we need to make clear what the development model can do and what not to do:

One, the development pattern can realize the function

    1. You can receive messages sent by a user and feed back the corresponding content through your own developed system.
    2. Can receive a user sent over the geographical location, through the geographical location you can feedback the nearby restaurant information or traffic information (such as the Gold map)
    3. With event push, you can identify the user's subscription to the public account and unsubscribe operations.
    4. Development mode of the interface in addition to feedback text messages, can also feedback audio content to the user.
    5. You can upload pictures, voice, video and other content to the public platform through the common interface, and can call these materials.
    6. You can manage custom menu features. (This function is still in beta)

Second, the development model can not achieve the function

    1. Cannot identify the user account name, can only identify a string of very long tousername, this should be the micro-trust public platform to the user information privacy protection. So it is impossible to pull users to their own platform for Management.
    2. You cannot manage users or view the user's profile.
    3. You cannot reply messages to a single user, which can only be managed on a micro-trust public platform.
    4. Development mode does not support message mass, this can only operate on the micro-trust public platform.

Current development patterns are mainly used in the way:

    1. Micro-letter is actually a browser, as long as you design the production of HTML5 mobile phone page, you can directly access through the micro-letter, which can bring us unlimited imagination space. China Merchants Bank's micro-letter is through such a way to achieve query balance, mobile phone repayment functions. China Unicom's micro-letter can check the phone, check the flow and so on. Of course we can do more back-end function development in this way.
    2. Micro-letter Built-in map positioning, you can achieve near traffic, check the Annex Restaurant hotel and other information.
    3. Can be used to do micro-mail chat robot, this requires a very strong semantic recognition technology, this feature many platforms have been implemented.
    4. You can buy lottery tickets through micro-letters, such as Tencent's official "lottery ticket".
    5. Status notification function, if the use of Dnspod micro-letter friends should know that he has a status notification function, when the site down machine or Account log in, will automatically notify you. If this function is popular, after the website authentication does not need the text message.

How to open the "development mode" of the micro-credit public platform

To open the development mode is very simple, as long as the background into the development mode after the click on the Open button, and then the binding interface file to complete the opening. The following figure we see the interface configuration information to fill in the URL and token information, URL is placed on your website interface file address, token is the authentication code. The bottom one is the permissions of the interface.

"Liu Zijun Skills" Click on the image "view document", see the Inside "Message Interface Guide", pull to the bottom will see the PHP sample code, that file contains the standard PHP interface file.

Brief solution to the development document of micro-credit public platform

After clicking "View Document" we enter into the development Help document, the left side is the document column, including the message interface, the common Interface, the custom menu interface, the use restriction and the return code. I don't specifically say inside the code and so on content, I use these columns to explain the use of the interface.

1, the message interface: This is mainly used to receive messages sent by the user, and then through the interface feedback to the user of the corresponding graphics or text content or audio content.

2, the common interface: mainly for uploading pictures, voice, video footage to the micro-trust public platform, and the interface can be used to call these materials. (This interface needs to apply to the micro-letter for the beta qualification to use)

3, Custom Menu interface: Through this interface can be customized menu to create, query, add and other management operations. (This interface needs to apply to the micro-letter for the beta qualification to use)

4, the use of restrictions: here only to limit the common interface and custom menu interface operating frequency (note that this is not the number of users, but the number of background operations, the user is not affected), the message interface is not restricted.

5, Return code description: Here is the use of the common interface of the JSON return results, through the return code to facilitate developers to identify the situation of the development program.

The

is probably first written here, the next tutorial I will talk about micro-trust public platform meeting account number, this is the "micro-trust public Platform QuickStart Tutorial," The last lesson, then officially began to share more micro-credit marketing cases and some micro-credit marketing methods, please pay attention to Liu Zijun blog update. Liu Zijun's micro-credit public platform is officially open.

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.