WeChat Mini Program API Obtain the QR code of the Mini Program page
Get the QR code of the mini program page
You can obtain the QR code of any page of the mini program through the backend interface. Scan the QR code to directly enter the corresponding page of the mini program
Interface address:
https://api.weixin.qq.com/cgi-bin/wxaapp/createwxaqrcode?access_token=ACCESS_TOKEN
Get access_token, please refer to the document for details
POST parameter description
Parameter | Default value | Description |
---|---|---|
path | cannot be empty, maximum length 128 bytes | |
width | 430 | Width of QR code |
Example:
{"path": "pages/index?query=1", "width": 430}
Note: pages/index needs to be defined in pages
of 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 100,000 QR codes with parameters, please call with caution.