GET
qrcode
公开接口 累计 23 次/api/v1/demo/qrcode
本地生成二维码(PHPQRCode)
/api/v1/demo/qrcode
| 参数 | 类型 | 必填 | 默认值 | 说明 |
|---|---|---|---|---|
text |
string |
必填 | - | 二维码内容 |
size |
integer |
可选 | 300 |
输出尺寸(px) |
redirect |
integer |
可选 | 0 |
1=302 重定向到图片 |
format |
string |
可选 | json |
json=JSON+data_uri;png=二进制 PNG |
{
"ok": true,
"data": {
"result": {
"text": "https://example.com",
"size": 300,
"width": 300,
"height": 300,
"content_type": "image/png",
"bytes": 1234,
"data_uri": "data:image/png;base64,..."
}
}
}
curl -X GET '/api/v1/demo/qrcode?size=300&redirect=0&format=json'