| 接口地址:http://apis.juhe.cn/qrcode/api |
|---|
| 返回格式:json |
| 请求方式:get/post |
| 请求示例:http://apis.juhe.cn/qrcode/api?key=&type=2&fgcolor=00b7ee&w=90&m=5&text=hello%20world! |
| 名称 | 类型 | 必填 | 说明 |
|---|---|---|---|
| key | string | 必填 | 应用APPKEY,申请数据系统分配 扫码关注公众号 |
| text | string | 选填 | 二维码内容 |
| el | string | 选填 | 纠错等级,el可用值:h\q\m\l,例如:h |
| bgcolor | string | 选填 | 背景色代码,例如:ffffff |
| fgcolor | string | 选填 | 前景色代码,例如:000000 |
| logo | string | 选填 | logo图片URL地址或base64encode编码的图片内容,需要urlencode |
| w | int | 选填 | 尺寸大小(像素),例如:300 |
| m | int | 选填 | 边距大小(像素),例如:10 |
| lw | int | 选填 | logo宽度(像素),例如:60 |
| type | int | 选填 | 返回模式,1:二维码图片以base64encode编码返回 2:直接返回二维码图像,默认1 |
| 名称 | 类型 | 说明 |
|---|---|---|
| base64_image | string | base64encode编码的二维码图片内容 |
{
"reason": "success",
"result": {
"base64_image": "base64encode编码的二维码图片内容"
},
"error_code": 0
}| 错误码 | 说明 |
|---|---|
| 10001 | 错误的请求KEY |
| 10002 | 该KEY无请求权限 |
| 10003 | KEY过期 |
| 10004 | 错误的OPENID |
| 10005 | 应用未审核超时,请提交认证 |
| 10007 | 未知的请求源 |
| 10008 | 被禁止的IP |
| 10009 | 被禁止的KEY |
| 10011 | 当前IP请求超过限制 |
| 10012 | 请求超过次数限制 |
| 10013 | 测试KEY超过请求限制 |
| 10014 | 系统内部异常(调用充值类业务时,请务必联系客服或通过订单查询接口检测订单,避免造成损失) |
| 10020 | 接口维护 |
| 10021 | 接口停用 |
小F正在拼命添加中...