PHP Micro-trust public Platform Development (i) configuration Interface _php Instance

Source: Internet
Author: User
Tags custom name

First, Introduction

Micro-credit public platform is Tencent's micro-letter based on the new function module, through this platform, individuals and enterprises can create a micro-letter public number, and to achieve a specific group of text, pictures, voice of all-round communication, interaction.

II. Communication mechanisms

Third, registered micro-trust platform public account

Registered Address:https://mp.weixin.qq.com

Iv. Server-side configuration

4.1 Sample Code Setup

The micro-credit public platform provides a sample PHP code:

Http://xiazai.jb51.net/201612/yuanma/phpwxsample (jb51.net). rar

Download, unzip, and open the edit.

Set the token value to the value you want, and the token can be filled out by the developer as a build signature.

After editing, save and close the file, change the file wx_sample.php to a custom name, wxapi.php, and then packaged into Wxapi.zip.

4.2 Server Platform Settings

If you have your own server, and support PHP, you can upload the interface file to the server, if you do not have their own server, you can choose a part of the free cloud Platform for development, such as Baidu application engine Bae (HTTP://DEVELOPER.BAIDU.COM/BAE), The Sina Cloud Platform SAE (http://sae.sina.com.cn/).

4.2.100 Degrees BAE Setup

A. Registering for a BAE account and logging in

https://passport.baidu.com/v2/?reg®type=1&tpl=mn&u=http%3a%2f%2fwww.baidu.com%2f

B. Join the Developer Center

C. Create an application

The access mode chooses "mobile Web Application".

D. Managed settings

Select the cloud Environment (BAE)-> managed settings.

Environment type Select "PHP".

E. Create new version, upload interface file

F. Online and get links

Obtained URL:http://zhuojin.duapp.com/

Note: Zhuojinsz has been registered with me before, so I cannot register again. The two-level domain name should be the same as the one in the screenshot above.

BAE Setup is complete.

4.2.2 Sina SAE Set

A. Registering the SAE account and logging in

http://sae.sina.com.cn/

B. Creating new applications

My home-> Create a new application

C. Configuring Applications

D. Upload Code

Application management-> code management-> upload code package

E. Get URL address

Obtained URL address:http://1.zhuojin.sinaapp.com/

SAE configuration complete.

V. Configure interfaces

5.1 Login micro-credit public platform-> High energy function-> Development mode

5.2 Become a developer

5.3 Interface Configuration information

The URL is filled with the BAE URL:http://zhuojin.duapp.com/, plus the uploaded php filename. namely http://zhuojin.duapp.com/wxapi.php

Token fill in the custom Token value, here for Zhuojinsz.

For Sae,url fill in http://1.zhuojin.sinaapp.com/wxapi.php

5.4 Submit

Click "Submit" and if all settings are correct, you will be prompted to "submit successfully".

5.5 View Interface configuration information

BAE Interface Information

SAE Interface Information

5.6 Open Development Mode

At this point, the configuration is complete.

Vi. concerns

The above is the entire content of this article, I hope to help you learn, but also hope that we support the cloud habitat community.

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.