Home  >  Article  >  Backend Development  >  WeChat Development-Access Instructions

WeChat Development-Access Instructions

WBOY
WBOYOriginal
2016-08-10 08:48:40904browse

Instructions for access:

1. WeChat Public Platform Developer Documents->Must-Read for Developers->Access Guide, after completing the access

According to the content described in the third step of the document (hereinafter the user Every time a message is sent to the official account or a custom menu click event is generated, the server configuration URL filled in by the developer will get the messages and events pushed by the WeChat server. The developer can then respond based on its own business logic, such as replying to messages, etc. . ) for business development;

2. Developer Center->Server Configuration->Enable

After enabled, functions such as automatic replies and custom menus will become invalid, and developers are required to submit corresponding data to the specified interface. In order to achieve functions such as custom menus.

Test instructions:

1. If the current public account is in use and it is inconvenient to use it for development, you can obtain the test number from (WeChat Public Platform Developer Platform Documentation->Developer Tools->Interface Test Account Application) Corresponding information, and configure the test message interface URL; after the development is completed, switch back to the official official account;

2. The interface permissions of the test account are not restricted, so when developing, you must confirm whether the official official account has The permissions of the corresponding interface, otherwise when switching back to the official official account to call the interface, it will prompt that the interface is not authorized (corresponding error code: 48001, error message: api unauthorized), so you need to upgrade the official account to a service account to obtain authorization for the advanced interface ;

The above introduces the WeChat development-access instructions, including the relevant content. I hope it will be helpful to friends who are interested in PHP tutorials.

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn