Home >WeChat Applet >Mini Program Development >Introduction to QR codes for mini programs launched on WeChat public platform
WeChat public platform has launched mini program QR codes to facilitate offline promotion of merchants.
1. View the official QR code of the mini program in "Settings". This QR code is only used to access the official online version of the mini program.
##2. Obtain the QR code with parameters through the interface. A maximum of 10,000 QR codes with parameters can be generated, please call with caution. Please refer to the calling documentation.
Get the QR code of the mini program page
You can get the QR code of any page of the mini program through the background interface. Scan the QR code to enter directly. The page corresponding to the mini program
Interface address:
https://api.weixin.qq.com/cgi-bin/wxaapp/createwxaqrcode?access_token=ACCESS_TOKEN Obtain access_token For details, see
POST parameter description
Parameter default value description path cannot be empty, the maximum length is 128 bytes width430 Width example of QR code:
{"path": "pages/index?query=1", "width": 430} Note: pages/ index needs to be defined in app.json
Bug & Tip
tip: Through this interface, only the QR code of the published mini program can be generated.
tip: You can generate a QR code with parameters for the development version when previewing the developer tools.
tip: There are only 10,000 QR codes with parameters, please call with caution.
The above is the detailed content of Introduction to QR codes for mini programs launched on WeChat public platform. For more information, please follow other related articles on the PHP Chinese website!