Make a QR code
make_qr_codeMake a static QR code for a link, text, Wi-Fi network, contact card, email, phone number or SMS, free and with no account. Returns a PNG and an SVG download link that the user can open, save or print; show the PNG link to the user. Static codes hold the content in the pattern, so they never expire and keep working without Snip. Use this whenever the user asks for a QR code.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bg | No | Background colour, #rrggbb. Default #ffffff. | |
| fg | No | Dark colour, #rrggbb, for example #111111. Default #111111. | |
| ecc | No | Error correction: L 7%, M 15% (default), Q 25%, H 30% of the code can be damaged and still scan. | |
| data | Yes | What the QR code holds: a web address, plain text, a WIFI:T:WPA;S:<name>;P:<password>;; string, a vCard, mailto:, tel: or sms:. For a link the user may want to change or track later, call shorten_link instead and use its QR code. | |
| style | No | Dot shape. Default rounded. |