curl "https://api.scanova.io/qr-assets/template/" \
-H "Authorization: 401f7ac837da42b97f613d789819ff93537bee6a"
{
"count": 1,
"next": null,
"previous": null,
"results": [
{
"id": 12,
"name": "Summer Poster",
"template_id": "a1b2c3d4e5f6",
"template_type": "P",
"template_type_display": "Poster",
"pattern_info": "{\"dotStyle\":\"round\"}",
"image": "https://cdn.scanova.io/upload/images/42/template-foo.png"
}
]
}
QR 资源
列出 QR 码设计模板
GET /qr-assets/template/
GET
/
qr-assets
/
template
/
curl "https://api.scanova.io/qr-assets/template/" \
-H "Authorization: 401f7ac837da42b97f613d789819ff93537bee6a"
{
"count": 1,
"next": null,
"previous": null,
"results": [
{
"id": 12,
"name": "Summer Poster",
"template_id": "a1b2c3d4e5f6",
"template_type": "P",
"template_type_display": "Poster",
"pattern_info": "{\"dotStyle\":\"round\"}",
"image": "https://cdn.scanova.io/upload/images/42/template-foo.png"
}
]
}
在 Management API 主机(
api.scanova.io)上列出账户自己保存的 QR 设计模板,使用您的原始 Management API 密钥进行身份验证。
GET https://api.scanova.io/qr-assets/template/
Authorization: 401f7ac837da42b97f613d789819ff93537bee6a
需要
SAVE_DESIGN_TEMPLATE 套餐配额——参见 Management API 概览。template_type 区分 "P"(海报)模板与 "N"(普通)模板。curl "https://api.scanova.io/qr-assets/template/" \
-H "Authorization: 401f7ac837da42b97f613d789819ff93537bee6a"
{
"count": 1,
"next": null,
"previous": null,
"results": [
{
"id": 12,
"name": "Summer Poster",
"template_id": "a1b2c3d4e5f6",
"template_type": "P",
"template_type_display": "Poster",
"pattern_info": "{\"dotStyle\":\"round\"}",
"image": "https://cdn.scanova.io/upload/images/42/template-foo.png"
}
]
}
?template_type=P 或 ?template_type=N 按类型过滤。可见范围:仅限账户自己的模板。
相关内容
- 创建 QR 码设计模板——保存一个新模板。
- 更新 QR 码设计模板——编辑现有模板。
- 删除 QR 码设计模板——删除一个模板。
- Management API 概览——适用于此端点的身份验证方案和配额规则。
授权
Send your Management API key as the raw value of the Authorization header — no "Bearer " or "Token " prefix, and no other characters. Example: Authorization: 401f7ac837da42b97f613d789819ff93537bee6a. 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.
响应
200 - application/json
Paginated list of templates.
此页面对您有帮助吗?