接口地址:https://open.6api.net/barcode/generate
支持格式:JSON,JSONP
请求方式:GET POST
请求示例:https://open.liupai.net/barcode/generate?appkey=yourappsecret
| 参数名称 | 类型 | 必填 | 说明 |
|---|---|---|---|
| type | string | 是 | 条码类型 |
| barcode | string | 是 | 条码号 |
| fontsize | int | 是 | 字号 |
| dpi | int | 是 | DPI |
| scale | int | 是 | 比例 |
| height | int | 是 | 高度 |
| 参数名称 | 类型 | 说明 |
|---|---|---|
| type | string | 条码类型 EAN13, EAN8, CODE11, CODE128, CODE39, CODE93, CODE3, GS1128, I25, ISBN等 |
| barcode | string | 条码图片内容 base64编码 |
接口地址:https://open.6api.net/barcode/read
支持格式:JSON,JSONP
请求方式:GET POST
请求示例:http://open.6api.net/barcode/read?appkey=yourappsecret
| 参数名称 | 类型 | 必填 | 说明 |
|---|---|---|---|
| pic | string | 是 | 上传图片base64或者网络图片 |
| 参数名称 | 类型 | 说明 |
|---|---|---|
| number | string | 条码内容 |
| type | string | 条码类型 |