Public Account-developer-custom menu, public developer
I am a beginner. I have read a lot online and are implemented by a third party. Considering the security issues, I am not afraid to use them!
Today, I finally found out the implementation method.
Official api: http://mp.weixin.qq.com/wiki/13/43de8269be54a0a6f64413e4dfa94f39.html
Step 1: Select "Developer Center ".
2. display the AppSecret and complete display (to be scanned ).
3. Go to "public platform interface debugging tools ",
A. Select "Basic Support"-"Access access_token interface/token ",
B. Fill in "appid" and "secret" (AppSecret ),
C. Click "Check the problem ",
D. "access_token" is displayed in the red line box ".
Https://mp.weixin.qq.com/debug/cgi-bin/apiinfo? T = index
4. Go to "public platform interface debugging tools"
A. Choose "custom menu"> "custom menu Creation Interface/menu/create"
B. Fill in "access_token" (obtained just now)
C. The content format of "body" is as follows:
{"Button": [{"type": "click", "name": "Today's songs", "key": "V1001_TODAY_MUSIC" },{ "name ": "menu", "sub_button": [{"type": "view", "name": "Search", "url": "http://www.soso.com /"}, {"type": "view", "name": "video", "url": "http://v.qq.com/" },{ "type": "click", "name ": "like us", "key": "V1001_GOOD"}]}View Code
D. Click "check problem"
E. errcode: 0 is returned, indicating success.
The end is a rough description.
PS: the "public platform interface debugging tool" serves as a development tool here. You can open only one drop-down menu on the left side of the API, and refresh it to retrieve it. This is a poor experience.