Introduction to QR codes for mini programs launched on WeChat public platform

高洛峰
Release: 2017-03-09 13:14:49
Original
2603 people have browsed it

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.

Introduction to QR codes for mini programs launched on WeChat public platform

##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.

Introduction to QR codes for mini programs launched on WeChat public platform

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!