curl -G "https://api.scanova.io/qr/QR7K9M2XN/download/" \
-H "Authorization: YOUR_API_KEY" \
-d file=svg \
-d size=600 \
-o "product-launch-flyer.svg"
Ein QR-Code-Bild herunterladen
GET /qr//download/
curl -G "https://api.scanova.io/qr/QR7K9M2XN/download/" \
-H "Authorization: YOUR_API_KEY" \
-d file=svg \
-d size=600 \
-o "product-launch-flyer.svg"
api.scanova.io) herunter, authentifiziert mit Ihrem rohen Management-API-Schlüssel.
GET https://api.scanova.io/qr/{qrid}/download/
Authorization: YOUR_API_KEY
qrid des QR-Codes, z. B. QR7K9M2XN./qrcode/{qrid}/download/ ist ebenfalls weiterhin erreichbar, aus Gründen der Abwärtskompatibilität — dieselbe View, dasselbe Verhalten.Query-Parameter
png, jpg, jpeg, svg, pdf, eps oder ps.10 bis 2400.true wird ein druckfertiges PDF zurückgegeben, das lokal generiert wird (nicht über den Bildgenerator-Dienst), und file wird ignoriert.Antwort
Eine erfolgreiche Anfrage gibt das Bild als Binärdatei-Download zurück (Content-Disposition: attachment), mit einem Dateinamen, der aus dem Namen des QR-Codes abgeleitet wird (oder aus seiner qrid, falls unbenannt).
curl -G "https://api.scanova.io/qr/QR7K9M2XN/download/" \
-H "Authorization: YOUR_API_KEY" \
-d file=svg \
-d size=600 \
-o "product-launch-flyer.svg"
Fehler
size außerhalb von 10–2400 liegt oder file keinem der unterstützten Formate entspricht.qrid existiert nicht oder gehört nicht zu dem Konto, zu dem der Schlüssel gehört.Verwandte Themen
- QR-Codes auflisten / erstellen — finden Sie die
qrid, die Sie hier herunterladen möchten. - Einen QR-Code abrufen, aktualisieren, löschen — rufen Sie die vollständigen Details eines QR-Codes ab statt seines gerenderten Bilds.
Autorisierungen
Send your Management API key as the raw value of the Authorization header — no "Bearer " or "Token " prefix, and no other characters. Example: Authorization: YOUR_API_KEY. A header containing more than one space-separated part is rejected outright. Requests also require the request's Host header to be the management API host (e.g. api.scanova.io) — the same key sent to the regular API host will not authenticate.
Pfadparameter
The QR code's qrid — the opaque public identifier returned by the list endpoint, not the numeric id.
Abfrageparameter
Output size in pixels, from 10 to 2400.
Return a print-ready PDF, generated locally rather than via the generator service.
Output format.
png, jpg, jpeg, svg, pdf, eps, ps Pre-computed encode payload override, for static categories whose client-side encoding the backend does not reproduce.
Antwort
The rendered image, as a binary attachment.
War diese Seite hilfreich?