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"
下载二维码图片
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)上下载渲染好的二维码图片,使用您的原始 Management API 密钥进行身份验证。
GET https://api.scanova.io/qr/{qrid}/download/
Authorization: YOUR_API_KEY
qrid,例如 QR7K9M2XN。/qrcode/{qrid}/download/ 出于向后兼容目的仍然可用——同一个视图,行为相同。查询参数
png、jpg、jpeg、svg、pdf、eps 或 ps。10 到 2400。true 时,返回一份在本地生成(而非通过图像生成服务)的可打印 PDF,并忽略 file 参数。响应
成功的请求会以二进制文件下载的形式返回图片(Content-Disposition: attachment),文件名取自该二维码的名称(若未命名则取其 qrid)。
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"
错误
size 超出 10–2400 范围,或 file 不是受支持的格式之一时返回。qrid 不存在,或不属于该密钥所属的账户。相关内容
- 列出 / 创建二维码 —— 查找要在此处下载的
qrid。 - 获取、更新、删除二维码 —— 获取二维码的完整详情,而不是其渲染后的图片。
授权
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.
路径参数
The QR code's qrid — the opaque public identifier returned by the list endpoint, not the numeric id.
查询参数
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.
响应
The rendered image, as a binary attachment.
此页面对您有帮助吗?