Application and use of micro-channel public platform test numbers

1. When do I need to apply the test number?

Currently I think there are two kinds of scenarios:
(1) due to personal application can only apply for subscription number, and many other functions of public numbers can not be used. The test number can call all interfaces micro-channel public platform, but can not be repeated news. The test numbers do not need to apply for public accounts, rapid application interface testing No.
direct experience and testing platform for all public high-level interface
(2) is used as an official test number services.
For example, you are now officially a formal environmental program ran numbers, all the account information (appId and appSecret) are the official numbers, this time you modify the service, upgrade some features. In order not to affect the normal use of the online program, you can apply for a number of tests to test the new version of the program.

2. How to apply test account

Portal: micro-channel public account application platform interface test

In the picture above click "Login" and then sweep the authorization.

Note that is not associated with the main public test numbers are numbers and personal associate of micro signal. . That is, everyone can apply, there must be public and not only can number in the subject. Test numbers and public numbers are independent.

3. After the application how to configure?

Application is successful you can see the number of test information, including
appID and appsecret. That in addition to modify account information, what you need to configure it?
(1) Use
URL: is the url of your back-end server. Must be a 80-port (mandatory micro-channel, the other port or virtual port other port mapping can not) for receiving a keyword reply menu definition functions.
token like their own definition, the interface token is your own settings file, after setting back the advanced features in the set to the same, the purpose is to tell the public platform, the server is mine, this process is to verify the password. This code can be considered a set of their own, to their own code inside the set. Is to develop high-level functional interface file is deployed on the server, so that can be accessed. Interface file to find micro-channel public number in the help files.

(2) Set call micro-letter domain name JS interface
Note: No need to " HTTP: // ", you can write directly domain name, such as "aa.bb.com"

(3) Set the page callback domain name
purposes: through a web interface calls after access_token authorization can be authorized, such as access to basic user information. No need to " HTTP: //" at the beginning, you can write directly domain name, such as "aa.bb.com"

Guess you like

Origin www.cnblogs.com/JessicaIsEvolving/p/11141133.html