WeChat program development WeChat access

WeChat development platform

What we need is a small program

WeChat public platform interface testing tool

Micro-channel public platform 

The two ids and secrets must be the same

 When I pass the test, there will be this command

 I now need my applet to appear with a menu  

{
    "button": [
        {
            "name": "扫码", 
            "sub_button": [
                {
                    "type": "scancode_waitmsg", 
                    "name": "扫码带提示", 
                    "key": "rselfmenu_0_0", 
                    "sub_button": [ ]
                }, 
                {
                    "type": "scancode_push", 
                    "name": "扫码推事件", 
                    "key": "rselfmenu_0_1", 
                    "sub_button": [ ]
                }
            ]
        }
    ]
}

 natapp

 Download this natapp and go to register

 Successful registration to purchase a free tunnel

 After success, there is an authtoken here

 Copy the authtoken

There is no config.ini folder when we download, we need to download

But I can't download it, so the folder I created directly changed the suffix 

#Place this file in the natapp same-level directory and the program will read the [default] section
#In the command line parameter mode, the same parameters such as natapp -authtoken=xxx will overwrite this configuration
#Command line parameter -config= can specify any config .ini file
[default]
authtoken= 0b5a39ccb18aaf29                      #authtoken corresponding to a tunnel clienttoken
= #clienttoken corresponding to the client, the authtoken will be ignored, if not, please leave it blank,
log=none #log log file, you can specify a local file, none=no Make records, stdout=direct screen output, the default is none
loglevel=ERROR #log level DEBUG, INFO, WARNING, ERROR defaults to DEBUG
http_proxy= #Proxy settings such as http://10.123.10.10:3128 Non-proxy Internet users must leave null 

Change this suffix when creating manually

When we write this port number and token, it must be run out of our cmd

 We need to put this project up and run

 Startup project

Access successful 

When we need to receive a message

 We remember these ids and change them, and then run the idea

It’s fine if you can receive messages without reporting an error when running

 No error on it

Guess you like

Origin blog.csdn.net/m0_60375943/article/details/123296812