User Tools

Site Tools


api:tools:qr

API : Tools: QR Code Generator

Introduction

This request will generate a PNG image with a QR code based on the provided argument.

Request

URL https://api.telecomx.dk/tools/qr
Method GET or POST
Access level Any
Query text String The string of text to encode into the QR
type String Type of image: png (default), svg, pdf or eps.
size Number Size of image, default 5 for png.
margin Number Margin around image, default 4 for png.
Body text String The string of text to encode into the QR
type String Type of image: png (default), svg, pdf or eps.
size Number Size of image, default 5 for png.
margin Number Margin around image, default 4 for png.

Query examples

https://api.telecomx.dk/tools/qr?text=hello%20my%20name%20is%20slim%20shady
https://api.telecomx.dk/tools/qr?text=hello%20my%20name%20is%20slim%20shady&size=10&margin=5&type=png

Response

Binary file in the form or a png, svg, pdf or eps file.

Errors

Error code Message Description
500 internal_error <Unspecified>
api/tools/qr.txt · Last modified: 2021/09/08 13:57 by Per Møller

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki