{"info":{"_postman_id":"b0d8c856-8a9e-4a07-a069-2a16f6921a9a","name":"链科云打印 v3 API 使用文档","description":"<html><head></head><body><h2 id=\"基本操作流程\">基本操作流程:</h2>\n<p><strong>前置条件：对接API前，请务必先到开放平台(</strong><a href=\"https://open.liankenet.com/#/device/detail?device_id=lc27cs03124305\">https://open.liankenet.com/</a><strong>) 绑定设备，详见</strong> <a href=\"https://lianke.yuque.com/vgtche/ng6y25/gylb4owfwsn4che4?singleDoc#%E3%80%8A%E9%87%8D%E8%A6%81%E9%80%9A%E7%9F%A5%EF%BC%9A%E9%93%BE%E7%A7%91%E4%BA%91%E8%AE%BE%E5%A4%87%E5%AE%89%E5%85%A8%E6%80%A7%E5%8D%87%E7%BA%A7%E3%80%8B\">《重要通知：链科云设备安全性升级》</a></p>\n<ol>\n<li><p><strong>第一步-获取打印机信息</strong></p>\n<ul>\n<li><p>购买云盒，推荐使用链科云盒，<a href=\"https://shop167081082.m.youzan.com/v2/showcase/homepage?alias=W79JHvloAF\">点击下单</a></p>\n</li>\n<li><p>从二维码获取<code>deviceId</code>(云账号) 和 <code>deviceKey</code>(云密码)</p>\n</li>\n</ul>\n</li>\n<li><p><strong>第二步-提交打印任务</strong></p>\n<ul>\n<li>设定打印机参数，并提交打印任务</li>\n</ul>\n</li>\n<li><p><strong>第三步-查询打印状态</strong></p>\n<ul>\n<li>查询打印结果（可使用回调代替）</li>\n</ul>\n</li>\n</ol>\n<p>API服务器地址 <code>cloud.liankenet.com</code></p>\n<hr>\n<p><code>cloud.wisiyilink.com</code> <strong>域名已下线，请及时更换，该域名随时失效</strong> <a href=\"https://lianke.yuque.com/vgtche/ng6y25/vywmdxu20ghmysle?singleDoc=\">点击查看更新变更通知详情</a></p>\n<h2 id=\"api约定\">API约定</h2>\n<ul>\n<li><p>每个请求的都要在headers中填入 ApiKey <em><strong>(重要, 如因不带ApiKey导致业务中断，链科不承担任何责任)</strong></em></p>\n</li>\n<li><p>ApiKey请到平台注册获取 <a href=\"https://open.liankenet.com\">点击跳转</a></p>\n</li>\n</ul>\n<h2 id=\"从二维码获取deviceid，devicekey方法\">从二维码获取deviceId，deviceKey方法</h2>\n<ul>\n<li><p>解析二维码获取网页链接，解析网页链接中token参数</p>\n</li>\n<li><p>得到token值进行反base64，得到以:分隔的字符串</p>\n</li>\n<li><p>字符串前者为deviceId，后者为deviceKey</p>\n</li>\n</ul>\n<h2 id=\"sdk-持续更新\">SDK (持续更新)</h2>\n<p>php sdk: <a href=\"https://github.com/liankenet/cloud_printer_demo\">https://github.com/liankenet/cloud_printer_demo</a></p>\n<p>小程序配网插件：</p>\n<p><a href=\"https://mp.weixin.qq.com/wxopen/plugindevdoc?appid=wxa2a39810c572b508&amp;token=1709758749&amp;lang=zh_CN\">https://mp.weixin.qq.com/wxopen/plugindevdoc?appid=wxa2a39810c572b508&amp;token=1709758749&amp;lang=zh_CN</a></p>\n<h2 id=\"api-测试-demo\">API 测试 demo</h2>\n<p><a href=\"https://open.liankenet.com/api_demo/#/home\">https://open.liankenet.com/api_demo/</a></p>\n<h2 id=\"注意事项（重要）\">注意事项（重要）</h2>\n<ul>\n<li><p>请使用<a href=\"https://docs.liankenet.com/api_doc/\">https://docs.liankenet.com/api_doc/</a>获取最新文档，避免因版本更新遇到问题</p>\n</li>\n<li><p>有业务高峰期请提前通知，保障服务稳定性</p>\n</li>\n<li><p>该服务为正式对外服务，禁止对本API服务进行压测，如有压测行为视为攻击，链科有权禁用ApiKey与服务器ip，严重影响业务的攻击行为将通过法律途径解决</p>\n</li>\n</ul>\n<h2 id=\"更新日志\">更新日志</h2>\n<p>2022年03月01日</p>\n<ul>\n<li>打印接口新增<code>reportDeviceStatus</code> <code>reportPrinterStatus</code> <code>callbackUrl</code> 参数</li>\n</ul>\n<p>2023年02月01日</p>\n<ul>\n<li>新增消息推送功能，可及时推送设备断线，打印机插拔等状态消息，如需使用该功能，请到管理后台设置回调地址</li>\n</ul>\n<p>2023年02月07日</p>\n<ul>\n<li>新增连续打印失败错误重置API</li>\n</ul>\n<p>2023年11月30日</p>\n<ul>\n<li><p>新增清空排队中的任务API</p>\n</li>\n<li><p>更换域名</p>\n</li>\n</ul>\n<p>2024年1月11日</p>\n<ul>\n<li>优化提交任务jobFile参数描述</li>\n</ul>\n<p>2024年2月21日</p>\n<ul>\n<li>增加 jpScale 参数描述</li>\n</ul>\n<p>2024年9月27日</p>\n<ul>\n<li>优化提交任务jobFile参数描述</li>\n</ul>\n<p>2024年10月8日</p>\n<ul>\n<li>优化提交任务jobFile参数描述</li>\n</ul>\n<p>2024年10月28日</p>\n<ul>\n<li><p>增加对接前设备绑定提示</p>\n</li>\n<li><p>修改文档链接地址</p>\n</li>\n</ul>\n<p>2025年07月03日</p>\n<ul>\n<li>refresh_device_info接口下线</li>\n</ul>\n<p>2025年11月26日</p>\n<ul>\n<li>增加 urlFileExt 参数描述</li>\n</ul>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"1758872","collectionId":"b0d8c856-8a9e-4a07-a069-2a16f6921a9a","publishedId":"SWE83H6u","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2019-12-11T01:13:29.000Z"},"item":[{"name":"第一步-获取打印机信息","item":[{"name":"01-获取设备打印机列表","id":"e918967a-8bfd-4cde-b27f-ef7917bddc46","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"ApiKey","value":"{{ApiKey}}","description":"<p>申请的 开发者 api key</p>\n","type":"text"}],"url":"https://cloud.liankenet.com/api/external_api/printer_list?deviceId={{deviceId}}&deviceKey={{deviceKey}}&printerType=1","description":"<p>该接口返回打印机列表信息；默认该列表为云盒实时信息，如更换打印机信息不刷新，请<strong>升级固件</strong></p>\n<p>返回参数说明：</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>参数</th>\n<th>说明</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>driver_type</td>\n<td>0=&gt;待适配，1=&gt;已适配，2=&gt;不支持</td>\n</tr>\n<tr>\n<td>printer_name</td>\n<td>为打印机型号名称</td>\n</tr>\n<tr>\n<td>driver_name</td>\n<td>为对应发送接口的printerModel参数</td>\n</tr>\n<tr>\n<td>isPrinter</td>\n<td>是否为打印机，具体参数含义如下表格</td>\n</tr>\n<tr>\n<td>port</td>\n<td>对应devicePort，代表第几个USB口；网络打印机会返回631，此时devicePort填1即可</td>\n</tr>\n<tr>\n<td>support_status</td>\n<td>支持额外的打印机状态查询指令，代表可调用<a href=\"https://documenter.getpostman.com/view/1758872/SWE83H6u?version=latest#9966c8c3-3c94-4436-be1b-81f8e10939f4\">打印机状态查询接口</a></td>\n</tr>\n<tr>\n<td>printer_species</td>\n<td>打印机类型，含义参考表格</td>\n</tr>\n</tbody>\n</table>\n</div><p>网络打印机参数：</p>\n<ul>\n<li>ip_addr：对应网络打印机的IP地址</li>\n<li>markers：墨盒信息, 网络打印机独有</li>\n<li>printer_state: 网络打印机状态，idle为就绪，printing打印中，stopped打印机异常</li>\n</ul>\n<h5 id=\"isprinter参数\">isPrinter参数:</h5>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>值</th>\n<th>说明</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>1</td>\n<td>打印机</td>\n</tr>\n<tr>\n<td>0</td>\n<td>非打印机（或部分情况下打印机处于打印状态下会返回该值）</td>\n</tr>\n</tbody>\n</table>\n</div><hr />\n<h5 id=\"printer_species参数：\">printer_species参数：</h5>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>值</th>\n<th>说明</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>0</td>\n<td>未知</td>\n</tr>\n<tr>\n<td>1</td>\n<td>针式</td>\n</tr>\n<tr>\n<td>2</td>\n<td>小票</td>\n</tr>\n<tr>\n<td>3</td>\n<td>标签</td>\n</tr>\n<tr>\n<td>4</td>\n<td>激光</td>\n</tr>\n<tr>\n<td>5</td>\n<td>喷墨</td>\n</tr>\n<tr>\n<td>6</td>\n<td>热升华</td>\n</tr>\n<tr>\n<td>7</td>\n<td>证卡</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["api","external_api","printer_list"],"host":["https://cloud.liankenet.com"],"query":[{"description":{"content":"<p>设备ID</p>\n","type":"text/plain"},"key":"deviceId","value":"{{deviceId}}"},{"description":{"content":"<p>设备密钥</p>\n","type":"text/plain"},"key":"deviceKey","value":"{{deviceKey}}"},{"description":{"content":"<p>1.USB打印机，2.网络打印机，3.USB和网络打印机</p>\n","type":"text/plain"},"key":"printerType","value":"1"}],"variable":[]}},"response":[{"id":"baa47959-0204-4243-830a-0f76c251a822","name":"打印机列表示例","originalRequest":{"method":"GET","header":[{"key":"ApiKey","value":"{{ApiKey}}","description":"申请的 开发者 api key","type":"text"}],"url":{"raw":"https://https://cloud.liankenet.com/api/external_api/printer_list?deviceId={{deviceId}}&deviceKey={{deviceKey}}&printerType=1","protocol":"https","host":["https://cloud.liankenet.com"],"path":["api","external_api","printer_list"],"query":[{"key":"deviceId","value":"{{deviceId}}","description":"设备ID"},{"key":"deviceKey","value":"{{deviceKey}}","description":"设备密钥"},{"key":"printerType","value":"1","description":"1.USB打印机，2.网络打印机，3.USB和网络打印机"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 05 Dec 2023 03:46:11 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Content-Encoding","value":"br"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"data\": {\n        \"row\": [\n            {\n                \"MDL\": \"MA2000w\",\n                \"device\": null,\n                \"drivce_name\": \"Kyocera MA2000w GX\",\n                \"driver_name\": \"Kyocera MA2000w GX\",\n                \"driver_type\": 1,\n                \"id\": 611757,\n                \"idProduct\": null,\n                \"idVendor\": null,\n                \"isPrinter\": 1,\n                \"port\": 1,\n                \"printer_name\": \"Kyocera MA2000w GX\",\n                \"printer_state\": \"outOfPaper\",\n                \"product\": \"MA2000w\",\n                \"species\": 4,\n                \"support_status\": true,\n                \"vendor\": null\n            },\n            {\n                \"MDL\": \"\",\n                \"device\": null,\n                \"drivce_name\": \"ESC/POS通用驱动(203dpi) 模式2\",\n                \"driver_name\": \"ESC/POS通用驱动(203dpi) 模式2\",\n                \"driver_type\": 1,\n                \"id\": 611809,\n                \"idProduct\": null,\n                \"idVendor\": null,\n                \"isPrinter\": 1,\n                \"port\": 2,\n                \"printer_name\": \"ESC/POS通用驱动(203dpi) 模式2\",\n                \"printer_state\": \"idle\",\n                \"product\": \"BAR PRINTER\",\n                \"species\": 0,\n                \"support_status\": false,\n                \"vendor\": null\n            },\n            {\n                \"MDL\": \"e-STUDIO2323AM Printer\",\n                \"device\": null,\n                \"drivce_name\": \"TOSHIBA e-STUDIO2323AMSeries GDI\",\n                \"driver_name\": \"TOSHIBA e-STUDIO2323AMSeries GDI\",\n                \"driver_type\": 1,\n                \"id\": 612554,\n                \"idProduct\": null,\n                \"idVendor\": null,\n                \"isPrinter\": 1,\n                \"port\": 3,\n                \"printer_name\": \"TOSHIBA e-STUDIO2323AMSeries GDI\",\n                \"printer_state\": \"outOfPaper\",\n                \"product\": \"TOSHIBA e-STUDIO2323AM Scanner\",\n                \"species\": 4,\n                \"support_status\": false,\n                \"vendor\": null\n            }\n        ],\n        \"total\": 3\n    }\n}"}],"_postman_id":"e918967a-8bfd-4cde-b27f-ef7917bddc46"},{"name":"02-获取打印机参数【调用后请保存缓存数据】","id":"0880a1e7-b503-4509-b0ea-a1e1ae0f11c2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"ApiKey","value":"{{ApiKey}}","description":"<p>申请的 开发者 api key</p>\n","type":"text"}],"url":"https://cloud.liankenet.com/api/print/printer_params?printerModel={{printerModel}}","description":"<p>获取目标打印机设备参数:</p>\n<ul>\n<li><code>printerModel</code> 打印机型号，对应printer_list中driver_name</li>\n</ul>\n<p>获取到的参数值在api/print/job接口中对应填入</p>\n","urlObject":{"path":["api","print","printer_params"],"host":["https://cloud.liankenet.com"],"query":[{"description":{"content":"<p> 打印机型号，对应printer_list中driver_name</p>\n","type":"text/plain"},"key":"printerModel","value":"{{printerModel}}"}],"variable":[]}},"response":[{"id":"845208d6-e855-4d15-ba52-371997bffdbc","name":"03-获取打印机参数","originalRequest":{"method":"GET","header":[{"key":"ApiKey","value":"xxxxx","description":"申请的 开发者 api key","type":"text"}],"url":{"raw":"https://https://cloud.liankenet.com/api/print/printer_params?printerModel=HP LaserJet P1007","protocol":"https","host":["https://cloud.liankenet.com"],"path":["api","print","printer_params"],"query":[{"key":"printerModel","value":"HP LaserJet P1007","description":"打印机型号 (需要在支持列表中选取)"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Mon, 30 Dec 2019 05:34:51 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"2667"},{"key":"Connection","value":"keep-alive"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, OPTIONS, DELETE"},{"key":"Access-Control-Allow-Headers","value":"DNT,X-Mx-ReqToken,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Authorization,ApiKey"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"msg\": \"success\",\n    \"data\": {\n        \"Capabilities\": {\n            \"Bins\": {\n                \"在纸盘 1 中手动进纸\": 4,\n                \"纸盘 1\": 1,\n                \"自动选择\": 7\n            },\n            \"Color\": {\n                \"黑白\": 1\n            },\n            \"Copies\": 999,\n            \"Duplex\": {\n                \"关闭\": 1,\n                \"短边\": 3,\n                \"长边\": 2\n            },\n            \"MediaTypes\": {\n                \"默认\": 0\n            },\n            \"Orientation\": {\n                \"横向\": 2,\n                \"竖向\": 1\n            },\n            \"Papers\": {\n                \"10 号信封\": 20,\n                \"16 开 184x260 毫米\": 263,\n                \"16 开 195x270 毫米\": 264,\n                \"16 开 197x273 毫米\": 265,\n                \"8.5x13（自定义）\": 258,\n                \"A4\": 9,\n                \"A5\": 11,\n                \"A6\": 70,\n                \"B5 (JIS)\": 13,\n                \"B5 信封\": 34,\n                \"C5 信封\": 28,\n                \"DL 信封\": 27,\n                \"Double Japan Postcard Rotated\": 82,\n                \"Executive\": 7,\n                \"Japanese Postcard\": 43,\n                \"Legal\": 5,\n                \"Letter\": 1,\n                \"Monarch 信封\": 37,\n                \"A4连续纸(22.86x27.96)\\r\\n\": 512,\n                \"A4连续纸(24.1x27.96)\\r\\n\": 513,\n                \"A4连续纸(21x27.96)\": 514,\n                \"A4连续纸(21.6x27.9)\": 515,\n                \"A4连续纸二等分(22.86x13.98)\": 516,\n                \"A4连续纸二等分(24.1x14)\": 517,\n                \"A4连续纸二等分(21x13.98)\": 518,\n                \"A4连续纸二等分(21.6x13.95)\": 519,\n                \"A4连续纸三等分(22.86x9.32)\": 520,\n                \"A4连续纸三等分(24.1x9.32)\": 521,\n                \"A4连续纸三等分(21x9.32)\": 522,\n                \"A4连续纸三等分(21.6x9.3)\": 523,\n                \"A4连续纸不分页(22.86x500)\": 524,\n                \"A4连续纸不分页(24.1x500)\": 525,\n                \"A4连续纸不分页(21x500)\": 526,\n                \"A4连续纸不分页(21.6x500)\": 527,\n                \"标签纸（80x200mm）\": 528,\n                \"标签纸（80x100mm）\": 529,\n                \"A4连续纸(24.10x27.90)\": 530\n            },\n            \"Resolutions\": null\n        },\n        \"DevMode\": {\n            \"BitsPerPel\": 0,\n            \"Collate\": 0,\n            \"Color\": 1,\n            \"Copies\": 1,\n            \"DefaultSource\": 7,\n            \"DeviceName\": [\n                72,\n                80,\n                32,\n                76,\n                97,\n                115,\n                101,\n                114,\n                74,\n                101,\n                116,\n                32,\n                80,\n                49,\n                48,\n                48,\n                55,\n                0,\n                0,\n                0,\n                0,\n                0,\n                0,\n                0,\n                0,\n                0,\n                0,\n                0,\n                0,\n                0,\n                0,\n                0\n            ],\n            \"DisplayFlags\": 0,\n            \"DisplayFrequency\": 0,\n            \"DitherType\": 0,\n            \"DriverExtra\": 821,\n            \"DriverVersion\": 3,\n            \"Duplex\": 1,\n            \"Fields\": 40719,\n            \"FormName\": [\n                0,\n                0,\n                0,\n                0,\n                0,\n                0,\n                0,\n                0,\n                0,\n                0,\n                0,\n                0,\n                0,\n                0,\n                0,\n                0,\n                0,\n                0,\n                0,\n                0,\n                0,\n                0,\n                0,\n                0,\n                0,\n                0,\n                0,\n                0,\n                0,\n                0,\n                0,\n                0\n            ],\n            \"ICMIntent\": 0,\n            \"ICMMethod\": 0,\n            \"LogPixels\": 0,\n            \"MediaType\": 0,\n            \"Orientation\": 1,\n            \"PanningHeight\": 0,\n            \"PanningWidth\": 0,\n            \"PaperLength\": 2970,\n            \"PaperSize\": 9,\n            \"PaperWidth\": 2100,\n            \"PelsHeight\": 0,\n            \"PelsWidth\": 0,\n            \"PrintQuality\": 600,\n            \"Reserved1\": 0,\n            \"Reserved2\": 0,\n            \"Scale\": 0,\n            \"Size\": 220,\n            \"SpecVersion\": 1025,\n            \"TTOption\": 0,\n            \"YResolution\": 0\n        },\n        \"DeviceContext\": {\n            \"BitsPixel\": 8,\n            \"HorzRes\": 4736,\n            \"HorzSize\": 200,\n            \"LogPixelsX\": 600,\n            \"LogPixelsY\": 600,\n            \"NumColors\": 256,\n            \"PhysicalHeight\": 7016,\n            \"PhysicalOffsetX\": 94,\n            \"PhysicalOffsetY\": 94,\n            \"PhysicalWidth\": 4961,\n            \"VertRes\": 6824,\n            \"VertSize\": 289\n        },\n        \"Name\": \"HP LaserJet P1007\"\n    }\n}"}],"_postman_id":"0880a1e7-b503-4509-b0ea-a1e1ae0f11c2"}],"id":"5d22920e-e9dc-4158-96da-02b5927390ac","event":[{"listen":"prerequest","script":{"id":"0763791d-b5cf-42d1-a77e-aba3b5b81be2","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"c8ddf688-a599-4bd9-a0df-9415735738a5","type":"text/javascript","exec":[""]}}],"_postman_id":"5d22920e-e9dc-4158-96da-02b5927390ac","description":""},{"name":"第二步-提交打印任务","item":[{"name":"提交打印任务(基础用法)","event":[{"listen":"test","script":{"id":"5c43cca8-f583-45bb-8d60-75dfa2ce02f3","exec":["var jsonData = pm.response.json();","// save JWT value for auth","pm.environment.set(\"task_id\", jsonData.data.task_id);",""],"type":"text/javascript","packages":{},"requests":{}}}],"id":"9257885a-c7ab-4a00-ada7-744eea02c1a4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"ApiKey","value":"{{ApiKey}}","description":"<p>申请的 开发者 api key</p>\n"}],"body":{"mode":"formdata","formdata":[{"description":"<p>(必填) 设备ID</p>\n","key":"deviceId","type":"text","value":"{{deviceId}}"},{"description":"<p>(必填) 设备密钥</p>\n","key":"deviceKey","type":"text","value":"{{deviceKey}}"},{"key":"devicePort","value":"{{devicePort}}","description":"<p>设备端口，默认为USB1接口，填写值为数字，多个USB口设备必填</p>\n","type":"text"},{"description":"<p>(必填) 任务文件<br />\n支持图片、Office文件、pdf、html文件 (参数需为 formfile 格式)<br />\n支持链接地址，多个链接请用换行符\\n拼接(参数需为 字符串 格式)<br /></p>\n<blockquote>\n<p>注：此参数如果是纯文本传参，会被当作是链接进行处理，所以如果想要传入html字符串，需要先把html 内容保存为html文件，再当作文件进行渲染处理。\n另外如果想要直接传入打印机指令集，如小票的ESC指令等，需要把指令保存为.prn 文件，当作文件进行处理（此时其他打印参数将不会生效，打印机将完全安装传输的指令执行）\n不支持复杂的前端框架，如vue等。请尽可能减少渲染逻辑的复杂性，以免渲染失败\n若使用链接，需要额外传 urlFileExt参数</p>\n</blockquote>\n","key":"jobFile","type":"file","src":"WechatIMG8442.jpg"},{"description":"<p>(必填) 打印纸张尺寸<br />\n9：A4<br />\n11：A5<br /></p>\n<ul>\n<li>可取值：获取打印机参数：<code>Capabilities -&gt; Papers</code><br /></li>\n<li>默认值：获取打印机参数：<code>DevMode -&gt; PaperSize</code><br /></li>\n</ul>\n<p><strong>注意，自定义纸张时，此值需设为<code>0</code></strong></p>\n","key":"dmPaperSize","type":"text","value":"9"},{"description":"<p>(必填) 自动缩放<br />\n4 : 自适应(推荐)<br />\n0 : 原图打印(由于dpi原因，可能会过小)<br />\n1:  宽度优先(超出时裁剪高度)<br />\n2:  高度优先(超出时裁剪宽度)'<br />\n3 : 拉伸全图<br />\nxx% : 自定义, 占纸张的百分比<br /></p>\n","key":"jpAutoScale","type":"text","value":"4"},{"key":"jpScale","value":"fit","description":"<p>自动缩放 (取代 jpAutoScale， 优先使用这个参数)<br />\nfit : 自适应<br />\nfitw : 宽度优先 (超出时裁剪高度)<br />\nfith : 高度优先 (超出时裁剪宽度)<br />\nfill : 拉伸全图 (图片可能会变形)<br />\ncover : 自动裁剪, 铺满纸张<br />\nxx% : 自定义, 占纸张的百分比<br />\nnone : 关闭缩放， 按图片原本的分辨率和打印机分辨率一一对应<br /></p>\n","type":"text"},{"description":"<p>打印纸张方向<br />\n1：竖向<br />\n2：横向<br /></p>\n<ul>\n<li>默认值：获取打印机参数：<code>DevMode -&gt; Orientation</code></li>\n</ul>\n","key":"dmOrientation","type":"text","value":"1"},{"description":"<p>打印份数<br />\n1：打印一份<br /></p>\n<ul>\n<li>最大不能超过打印机参数：<code>Capabilities -&gt; Copies</code></li>\n</ul>\n","key":"dmCopies","type":"text","value":"1"},{"description":"<p>打印颜色<br />\n1：黑白<br />\n2：彩色<br /></p>\n<ul>\n<li>默认值：获取打印机参数：<code>DevMode -&gt; Color</code></li>\n</ul>\n","key":"dmColor","type":"text","value":"1"},{"key":"urlFileExt","value":".pdf","description":"<p>指定链接文件的格式后缀如 .pdf | .png 等支持的格式</p>\n","type":"text","uuid":"24f5cdd9-4d40-42ac-b947-f9c9e49190ce","disabled":true}]},"url":"https://cloud.liankenet.com/api/print/job","description":"<p>提交打印任务</p>\n<p><code>form-data</code>格式，非JSON<br />入参类型<code>content-type</code>为<code>form-data</code></p>\n<p>该API为异步接口，转换调用是没有阻塞的，会立即返回调用结果，此时的返回结果仅仅是表明任务被正常接受，不表示打印完成。</p>\n<p>此API提交成功将会返回后台生成的 <code>task_id</code> 作为唯一任务ID，可用于后续轮询<code>查询任务状态</code> 或 <code>取消任务</code></p>\n","urlObject":{"path":["api","print","job"],"host":["https://cloud.liankenet.com"],"query":[],"variable":[]}},"response":[{"id":"7da69324-ccc3-4f63-981c-24a0f6e322c1","name":"提交打印任务","originalRequest":{"method":"POST","header":[{"key":"ApiKey","value":"","description":"申请的 开发者 api key","type":"text"}],"body":{"mode":"formdata","formdata":[{"description":"设备ID","key":"deviceId","type":"text","value":"wsyl-test-01"},{"description":"设备密钥","key":"deviceKey","type":"text","value":"wsyl-test-01"},{"description":"设备端口：<br>\n1：USB1<br>\n2：USB2<br>\n……","key":"devicePort","type":"text","value":"1"},{"description":"打印机型号（对应打印机列表接口printer_list的drivce_name参数）","key":"printerModel","type":"text","value":"HP LaserJet P1007"},{"description":"任务文件<br/>\n支持常用办公文件、图片文件、html文件等","key":"jobFile","type":"file","src":"/Users/weijiangchen/Downloads/副本2(1).pdf"},{"description":"打印纸张尺寸<br/>\n9：A4<br/>\n11：A5<br/>\n- 可取值：获取打印机参数：`Capabilities -> Papers`<br/>\n- 默认值：获取打印机参数：`DevMode -> PaperSize`<br/>\n\n**注意，自定义纸张时，此值需设为`0`**","key":"dmPaperSize","type":"text","value":"9"},{"description":"打印纸张方向<br/>\n1：竖向<br/>\n2：横向<br/>\n- 默认值：获取打印机参数：`DevMode -> Orientation`","key":"dmOrientation","type":"text","value":"1"},{"description":"打印份数<br/>\n1：打印一份<br/>\n- 最大不能超过打印机参数：`Capabilities -> Copies`","key":"dmCopies","type":"text","value":"1"},{"description":"纸张来源<br/>\n- 可取值：获取打印机参数：`Capabilities -> Bins`<br>\n- 默认值：获取打印机参数：`DevMode -> DefaultSource`","key":"dmDefaultSource","type":"text","value":"1"},{"description":"打印颜色<br/>\n1：黑白<br/>\n2：彩色<br/>\n- 默认值：获取打印机参数：`DevMode -> Color`","key":"dmColor","type":"text","value":"1"},{"description":"双面打印<br/>\n1：关闭<br/>\n2：长边<br/>\n3：短边<br/>\n- 默认值：获取打印机参数：`DevMode -> Duplex`","key":"dmDuplex","type":"text","value":"1"},{"description":"打印纸张类型<br/>\n- 可取值：获取打印机参数：`Capabilities -> MediaTypes`<br/>\n- 默认值：获取打印机参数：`DevMode -> MediaType`","key":"dmMediaType","type":"text","value":"0"},{"description":"文档页数范围<br/>\n例如：1,2,3,4,5-10<br/>\n（为空则全部打印）","key":"jpPageRange","type":"text","value":"1,2,3,4","disabled":true},{"description":"文档自动旋转<br/>\n0：关闭（默认）<br/>\n1：开启","key":"jpAutoRotate","type":"text","value":"0"},{"description":"自动缩放<br/>\n4 : 自适应<br/>\n0 : 原图打印<br/>\n3 : 拉伸全图<br/>\nxx% : 自定义, 占纸张的百分比<br/>","key":"jpAutoScale","type":"text","value":"90%","disabled":true},{"description":"自动对齐<br/>\n<空>：左上（同z1, 默认）<br/>\nz1: 左上 <br/>\nz4: 左中 <br/>\nz7: 左下 <br/>\nz2: 中上 <br/>\nz5: 中 <br/>\nz8: 中下 <br/>\nz3: 右上 <br/>\nz6: 右中 <br/>\nz9: 右下 <br/>","key":"jpAutoAlign","type":"text","value":"z1","disabled":true},{"key":"dmPaperLength","value":"","description":"自定义高，dmPaperSize等于0时生效，单位0.1mm","type":"text","disabled":true},{"key":"dmPaperWidth","value":"","description":"自定义宽，dmPaperSize等于0时生效，单位0.1mm","type":"text","disabled":true}]},"url":"https://https://cloud.liankenet.com/api/print/job"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Sun, 05 Jan 2020 12:55:20 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"87"},{"key":"Connection","value":"keep-alive"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, OPTIONS, DELETE"},{"key":"Access-Control-Allow-Headers","value":"DNT,X-Mx-ReqToken,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Authorization,ApiKey"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"msg\": \"success\",\n    \"data\": {\n        \"task_id\": \"581decf2-c6f6-4163-8646-5dcc0c3c1c05\"\n    }\n}"}],"_postman_id":"9257885a-c7ab-4a00-ada7-744eea02c1a4"},{"name":"提交打印任务(进阶参数)","event":[{"listen":"test","script":{"id":"5c43cca8-f583-45bb-8d60-75dfa2ce02f3","exec":["var jsonData = pm.response.json();","// save JWT value for auth","pm.environment.set(\"task_id\", jsonData.data.task_id);",""],"type":"text/javascript","packages":{}}}],"id":"864fca1f-1b2a-4d27-9f1d-bd049928766b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"ApiKey","value":"{{ApiKey}}","description":"<p>申请的 开发者 api key</p>\n"}],"body":{"mode":"formdata","formdata":[{"description":"<p>(必填) 设备ID</p>\n","key":"deviceId","type":"text","value":"{{deviceId}}"},{"description":"<p>(必填) 设备密钥</p>\n","key":"deviceKey","type":"text","value":"{{deviceKey}}"},{"description":"<p>(选填) 设备端口：<br />\n1：USB1<br />\n2：USB2<br />\n……</p>\n","key":"devicePort","type":"text","value":"{{devicePort}}"},{"description":"<p>(选填) 打印机型号（对应打印机列表接口printer_list的driver_name参数）</p>\n","key":"printerModel","type":"text","value":"{{printerModel}}"},{"description":"<p>(必填) 任务文件<br />\n支持图片、Office文件、pdf、html文件 (formdata 格式)<br />\n支持链接地址，多个链接请用换行符\\n拼接(字符串格式)<br /></p>\n","key":"jobFile","type":"file","fileNotInWorkingDirectoryWarning":"This file isn't in your working directory. Teammates you share this request with won't be able to use this file. To make collaboration easier you can setup your working directory in Settings.","filesNotInWorkingDirectory":["/D:/Stocks/Messy/5270.png"],"src":"/D:/Stocks/Messy/5270.png"},{"description":"<p>(必填) 打印纸张尺寸<br />\n9：A4<br />\n11：A5<br /></p>\n<ul>\n<li>可取值：获取打印机参数：<code>Capabilities -&gt; Papers</code><br /></li>\n<li>默认值：获取打印机参数：<code>DevMode -&gt; PaperSize</code><br /></li>\n</ul>\n<p><strong>注意，自定义纸张时，此值需设为<code>0</code></strong></p>\n","key":"dmPaperSize","type":"text","value":"9"},{"description":"<p>打印纸张方向<br />\n1：竖向<br />\n2：横向<br /></p>\n<ul>\n<li>默认值：获取打印机参数：<code>DevMode -&gt; Orientation</code></li>\n</ul>\n","key":"dmOrientation","type":"text","value":"1"},{"description":"<p>打印份数<br />\n1：打印一份<br /></p>\n<ul>\n<li>最大不能超过打印机参数：<code>Capabilities -&gt; Copies</code></li>\n</ul>\n","key":"dmCopies","type":"text","value":"1"},{"description":"<p>纸张来源<br /></p>\n<ul>\n<li>可取值：获取打印机参数：<code>Capabilities -&gt; Bins</code><br /></li>\n<li>默认值：获取打印机参数：<code>DevMode -&gt; DefaultSource</code></li>\n</ul>\n","key":"dmDefaultSource","type":"text","value":"1"},{"description":"<p>打印颜色<br />\n1：黑白<br />\n2：彩色<br /></p>\n<ul>\n<li>默认值：获取打印机参数：<code>DevMode -&gt; Color</code></li>\n</ul>\n","key":"dmColor","type":"text","value":"1"},{"description":"<p>双面打印<br />\n1：关闭<br />\n2：长边<br />\n3：短边<br /></p>\n<ul>\n<li>默认值：获取打印机参数：<code>DevMode -&gt; Duplex</code></li>\n</ul>\n","key":"dmDuplex","type":"text","value":"1"},{"description":"<p>打印纸张类型<br /></p>\n<ul>\n<li>可取值：获取打印机参数：<code>Capabilities -&gt; MediaTypes</code><br /></li>\n<li>默认值：获取打印机参数：<code>DevMode -&gt; MediaType</code></li>\n</ul>\n","key":"dmMediaType","type":"text","value":"256","disabled":true},{"key":"dmPaperLength","value":"300","description":"<p>自定义高，dmPaperSize等于0时生效，单位0.1mm</p>\n","type":"text","disabled":true},{"key":"dmPaperWidth","value":"200","description":"<p>自定义宽，dmPaperSize等于0时生效，单位0.1mm</p>\n","type":"text","disabled":true},{"key":"dmPrintQuality","value":"","description":"<p>打印质量，可选值-1，-2，-3，-4；-1质量最低，-4质量最高</p>\n","type":"text","disabled":true},{"key":"isPreview","value":"1","description":"<p>预览，默认0，isPreview=1任务结果返回预览图片</p>\n","type":"text","disabled":true},{"key":"htmlKernel","value":"wkhtml","description":"<p>HTML转换内核，默认chrometopdf<br />\n可选参数：wkhtml, chrometopdf，wkhtmltopdf<br />\n建议选择wkhtmltopdf或chrometopdf支持自动分页</p>\n<p>注意：wkhtml组件在未来可能会被废弃，请优先选择chrometopdf</p>\n","type":"text","disabled":true},{"description":"<p>如需发送到局域网对应的网口打印机，请填写打印机IP，此时device_port固定填1</p>\n","key":"targetIp","type":"text","value":"192.168.1.1","disabled":true},{"description":"<p>文档页数范围<br />\n例如：1,2,3,4,5-10<br />\n（为空则全部打印）</p>\n<p>特殊值：\n-1：打印奇数页\n-2：打印偶数页</p>\n","key":"jpPageRange","type":"text","value":""},{"description":"<p>(必填) 自动缩放<br />\n4 : 自适应(推荐)<br />\n0 : 原图打印(由于dpi原因，可能会过小)<br />\n1:  宽度优先(超出时裁剪高度)<br />\n2:  高度优先(超出时裁剪宽度)'<br />\n3 : 拉伸全图<br />\nxx% : 自定义, 占纸张的百分比<br /></p>\n","key":"jpAutoScale","type":"text","value":"4"},{"key":"jpScale","value":"fit","description":"<p>自动缩放 (取代 jpAutoScale， 优先使用这个参数)<br />\nfit : 自适应<br />\nfitw : 宽度优先 (超出时裁剪高度)<br />\nfith : 高度优先 (超出时裁剪宽度)<br />\nfill : 拉伸全图 (图片可能会变形)<br />\ncover : 自动裁剪, 铺满纸张<br />\nxx% : 自定义, 占纸张的百分比<br />\nnone : 关闭缩放， 按图片原本的分辨率和打印机分辨率一一对应<br /></p>\n","type":"text"},{"description":"<p>自动对齐<br />\n&lt;空&gt;：左上（同z1, 默认）<br />\nz1: 左上 <br />\nz4: 左中 <br />\nz7: 左下 <br />\nz2: 中上 <br />\nz5: 中 <br />\nz8: 中下 <br />\nz3: 右上 <br />\nz6: 右中 <br />\nz9: 右下 <br /></p>\n","key":"jpAutoAlign","type":"text","value":"z5"},{"key":"reportDeviceStatus","value":"1","description":"<p>默认开启；拦截设备状态异常任务；返回值<br />\n5001 设备未配网<br />\n5002 设备已离线<br /></p>\n<p>上线会马上解除限制，直接拔掉电源会延迟1分钟左右才会提示离线</p>\n","type":"text","disabled":true},{"key":"reportPrinterStatus","value":"1","description":"<p>拦截打印机状态异常任务；返回值<br />\n5011  该USB接口未插入打印机<br /></p>\n<p>返回以上错误码时，系统将会自动刷新设备信息</p>\n","type":"text","disabled":true},{"key":"callbackUrl","value":"https://xxx.com/xxxxx","description":"<p>打印结果回调，打印完成后会将对应结果post推送至该url，必须为https链接，http code返回200即确认收到，否则重试三次后(间隔0，5，10)后放弃</p>\n","type":"text","disabled":true},{"key":"taskTicket","value":"xxxx","description":"<p>预览返回的任务凭证，重复利用中间文件，传参可以缩短本次打印任务的时间（注：此参数会导致jobFile传参无效）</p>\n","type":"text","disabled":true},{"key":"errLimitNum","value":"30","description":"<p>允许连续出错的任务数最大值，可连续出错次数，默认为30，最大不超过30</p>\n","type":"text","disabled":true},{"key":"pdfRev","value":"0","description":"<p>文档逆序功能，仅对文档类型文件有效，图片无效；0关闭，1开启</p>\n","type":"text","disabled":true},{"key":"jpAutoRotate","value":"0","description":"<p>自动旋转功能，建议打印文档时才打开，可以解决部分文档横竖向页面混搭；0关闭，1开启</p>\n","type":"text","disabled":true}]},"url":"https://cloud.liankenet.com/api/print/job","description":"<p>这里展示提交任务的一些额外参数</p>\n<p><code>form-data</code>格式，非JSON<br />入参类型<code>content-type</code>为<code>form-data</code></p>\n<p>该API为异步接口，转换调用是没有阻塞的，会立即返回调用结果，此时的返回结果仅仅是表明任务被正常接受，<strong>不表示打印完成。</strong></p>\n<p>此API提交成功将会返回后台生成的 <code>task_id</code> 作为唯一任务ID，可用于后续轮询<code>查询任务状态</code> 或 <code>取消任务</code></p>\n<hr />\n<p>回调功能 <code>callbackUrl</code> 说明：</p>\n<ul>\n<li>回调请求为POST请求，回调url可带参数，POST数据为JSON格式，示例如下：</li>\n</ul>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{'device_id': 'lk112312312312', 'task_id': 'bd85931c-38fa-4891-b1fa-5e1cf160ec12', 'task_state': 'SUCCESS', 'create_time': '2022-03-01 17:15:02', 'finish_time': '2022-03-01 17:30:58', 'task_result': {'code': 503, 'msg': '设备连接异常，请检查设备网络'}}\n\n</code></pre>\n<p><code>errLimitNum</code> 说明：</p>\n<p>该值代表允许最大连续出错任务数，默认为30。触发该限制后，返回值为</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\"code\": 11203, \"msg\": \"连续发送失败任务大于%d次，该设备已被暂停使用，请30分钟后再试或联系客服人员解除\"}\n\n</code></pre>\n<p>触发后可调用API解除限制，点击：<a href=\"https://documenter.getpostman.com/view/1758872/SWE83H6u#cf31c2a9-716f-4db0-801b-a3b816de4fb7\">解除打印失败次数过多导致的异常限制API</a></p>\n","urlObject":{"path":["api","print","job"],"host":["https://cloud.liankenet.com"],"query":[],"variable":[]}},"response":[{"id":"30b15f34-b9ae-45af-af92-aae9704742cc","name":"提交打印任务","originalRequest":{"method":"POST","header":[{"key":"ApiKey","value":"","description":"申请的 开发者 api key","type":"text"}],"body":{"mode":"formdata","formdata":[{"description":"设备ID","key":"deviceId","type":"text","value":"wsyl-test-01"},{"description":"设备密钥","key":"deviceKey","type":"text","value":"wsyl-test-01"},{"description":"设备端口：<br>\n1：USB1<br>\n2：USB2<br>\n……","key":"devicePort","type":"text","value":"1"},{"description":"打印机型号（对应打印机列表接口printer_list的drivce_name参数）","key":"printerModel","type":"text","value":"HP LaserJet P1007"},{"description":"任务文件<br/>\n支持常用办公文件、图片文件、html文件等","key":"jobFile","type":"file","src":"/Users/weijiangchen/Downloads/副本2(1).pdf"},{"description":"打印纸张尺寸<br/>\n9：A4<br/>\n11：A5<br/>\n- 可取值：获取打印机参数：`Capabilities -> Papers`<br/>\n- 默认值：获取打印机参数：`DevMode -> PaperSize`<br/>\n\n**注意，自定义纸张时，此值需设为`0`**","key":"dmPaperSize","type":"text","value":"9"},{"description":"打印纸张方向<br/>\n1：竖向<br/>\n2：横向<br/>\n- 默认值：获取打印机参数：`DevMode -> Orientation`","key":"dmOrientation","type":"text","value":"1"},{"description":"打印份数<br/>\n1：打印一份<br/>\n- 最大不能超过打印机参数：`Capabilities -> Copies`","key":"dmCopies","type":"text","value":"1"},{"description":"纸张来源<br/>\n- 可取值：获取打印机参数：`Capabilities -> Bins`<br>\n- 默认值：获取打印机参数：`DevMode -> DefaultSource`","key":"dmDefaultSource","type":"text","value":"1"},{"description":"打印颜色<br/>\n1：黑白<br/>\n2：彩色<br/>\n- 默认值：获取打印机参数：`DevMode -> Color`","key":"dmColor","type":"text","value":"1"},{"description":"双面打印<br/>\n1：关闭<br/>\n2：长边<br/>\n3：短边<br/>\n- 默认值：获取打印机参数：`DevMode -> Duplex`","key":"dmDuplex","type":"text","value":"1"},{"description":"打印纸张类型<br/>\n- 可取值：获取打印机参数：`Capabilities -> MediaTypes`<br/>\n- 默认值：获取打印机参数：`DevMode -> MediaType`","key":"dmMediaType","type":"text","value":"0"},{"description":"文档页数范围<br/>\n例如：1,2,3,4,5-10<br/>\n（为空则全部打印）","key":"jpPageRange","type":"text","value":"1,2,3,4","disabled":true},{"description":"文档自动旋转<br/>\n0：关闭（默认）<br/>\n1：开启","key":"jpAutoRotate","type":"text","value":"0"},{"description":"自动缩放<br/>\n4 : 自适应<br/>\n0 : 原图打印<br/>\n3 : 拉伸全图<br/>\nxx% : 自定义, 占纸张的百分比<br/>","key":"jpAutoScale","type":"text","value":"90%","disabled":true},{"description":"自动对齐<br/>\n<空>：左上（同z1, 默认）<br/>\nz1: 左上 <br/>\nz4: 左中 <br/>\nz7: 左下 <br/>\nz2: 中上 <br/>\nz5: 中 <br/>\nz8: 中下 <br/>\nz3: 右上 <br/>\nz6: 右中 <br/>\nz9: 右下 <br/>","key":"jpAutoAlign","type":"text","value":"z1","disabled":true},{"key":"dmPaperLength","value":"","description":"自定义高，dmPaperSize等于0时生效，单位0.1mm","type":"text","disabled":true},{"key":"dmPaperWidth","value":"","description":"自定义宽，dmPaperSize等于0时生效，单位0.1mm","type":"text","disabled":true}]},"url":"https://https://cloud.liankenet.com/api/print/job"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Sun, 05 Jan 2020 12:55:20 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"87"},{"key":"Connection","value":"keep-alive"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, OPTIONS, DELETE"},{"key":"Access-Control-Allow-Headers","value":"DNT,X-Mx-ReqToken,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Authorization,ApiKey"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"msg\": \"success\",\n    \"data\": {\n        \"task_id\": \"581decf2-c6f6-4163-8646-5dcc0c3c1c05\"\n    }\n}"}],"_postman_id":"864fca1f-1b2a-4d27-9f1d-bd049928766b"}],"id":"5066bbb4-6aed-441b-abd4-1bd4d961b7b4","_postman_id":"5066bbb4-6aed-441b-abd4-1bd4d961b7b4","description":""},{"name":"第三步-查询打印状态","item":[{"name":"获取打印任务信息","id":"c7d068a5-873c-4940-833c-c0f99a19d827","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"ApiKey","value":"{{ApiKey}}","description":"<p>申请的 开发者 api key</p>\n","type":"text"}],"url":"https://cloud.liankenet.com/api/print/job?deviceId={{deviceId}}&deviceKey={{deviceKey}}&devicePort={{devicePort}}&task_id={{task_id}}","description":"<p><strong>大部分情况下，建议使用POST api/print/job接口的callbackUrl回调功能代替此接口</strong></p>\n<p>使用提交打印任务时，返回的任务ID(<code>task_id</code>)来查询打印任务状态任务，如果预览时，则返回预览图片</p>\n<p><em><strong>建议轮询间隔为10秒</strong></em></p>\n<hr />\n<p>返回的结果中<code>task_state</code>代表队列状态，其中：</p>\n<ul>\n<li><code>READY</code> 排队中</li>\n<li><code>PARSING</code> 解析中</li>\n<li><code>SENDING</code> 发送中</li>\n<li><code>SUCCESS</code> 成功</li>\n<li><code>FAILURE</code> 失败</li>\n<li><code>SET_REVOKE</code> 标记为撤回</li>\n<li><code>REVOKED</code> 撤回成功</li>\n</ul>\n<p>当队列状态成功时，<strong>返回值会增加</strong><code>task_result</code><strong>，代表打印结果</strong>。code为200时，代表打印成功，非200则打印失败，具体信息参考msg</p>\n","urlObject":{"path":["api","print","job"],"host":["https://cloud.liankenet.com"],"query":[{"key":"deviceId","value":"{{deviceId}}"},{"key":"deviceKey","value":"{{deviceKey}}"},{"key":"devicePort","value":"{{devicePort}}"},{"key":"task_id","value":"{{task_id}}"}],"variable":[]}},"response":[{"id":"7f15eded-d97b-4e67-b036-1a1d7bd26616","name":"获取打印任务信息","originalRequest":{"method":"GET","header":[{"key":"ApiKey","value":"{{ApiKey}}","description":"申请的 开发者 api key","type":"text"}],"url":{"raw":"https://https://cloud.liankenet.com/api/print/job?deviceId={{deviceId}}&deviceKey={{deviceKey}}&devicePort={{devicePort}}&task_id={{task_id}}","protocol":"https","host":["https://cloud.liankenet.com"],"path":["api","print","job"],"query":[{"key":"deviceId","value":"{{deviceId}}"},{"key":"deviceKey","value":"{{deviceKey}}"},{"key":"devicePort","value":"{{devicePort}}"},{"key":"task_id","value":"{{task_id}}"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 06 Dec 2023 02:06:36 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"253"},{"key":"Connection","value":"keep-alive"},{"key":"Strict-Transport-Security","value":"max-age=15724800; includeSubDomains"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Allow-Methods","value":"PUT, GET, POST, OPTIONS, DELETE"},{"key":"Access-Control-Allow-Headers","value":"DNT,web-token,app-token,Authorization,Accept,Origin,Keep-Alive,User-Agent,X-Mx-ReqToken,X-Data-Type,X-Auth-Token,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range,token,Cookie,apikey,session-id"},{"key":"Access-Control-Max-Age","value":"1728000"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"data\": {\n        \"task_done_time\": \"Wed, 06 Dec 2023 02:06:12 GMT\",\n        \"task_done_timestamp\": 1701828372789,\n        \"task_result\": {\n            \"code\": 200,\n            \"data\": {\n                \"file_total\": 108499,\n                \"send_total\": 108499,\n                \"total_page\": 2\n            },\n            \"msg\": \"success\"\n        },\n        \"task_state\": \"SUCCESS\"\n    },\n    \"msg\": \"success\"\n}"}],"_postman_id":"c7d068a5-873c-4940-833c-c0f99a19d827"}],"id":"e7706ca3-21d7-4751-b68b-bf7e2efe4219","_postman_id":"e7706ca3-21d7-4751-b68b-bf7e2efe4219","description":""},{"name":"其他（获取服务器信息，取消任务...）","item":[{"name":"获取设备信息（在线状态，型号，固件版本，网络信息）","id":"5c1d412a-d0db-4a88-8cdb-7891fea21cc2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"ApiKey","value":"{{ApiKey}}","description":"<p>申请的 开发者 api key</p>\n","type":"text"}],"url":"https://cloud.liankenet.com/api/device/device_info?deviceId={{deviceId}}&deviceKey={{deviceKey}}","description":"<p>获取设备的设备信息</p>\n<p>包含在线状态，USB端口数，过期时间，设备软硬件版本，设备网络信息</p>\n<h4 id=\"online参数\">online参数:</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>值</th>\n<th>说明</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>null</td>\n<td>从未开机</td>\n</tr>\n<tr>\n<td>1</td>\n<td>在线</td>\n</tr>\n<tr>\n<td>0</td>\n<td>离线</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["api","device","device_info"],"host":["https://cloud.liankenet.com"],"query":[{"description":{"content":"<p>设备ID</p>\n","type":"text/plain"},"key":"deviceId","value":"{{deviceId}}"},{"description":{"content":"<p>打印共享器 密钥</p>\n","type":"text/plain"},"key":"deviceKey","value":"{{deviceKey}}"}],"variable":[]}},"response":[{"id":"e0cbe6a8-9cfa-4901-a58f-15684744de24","name":"获取设备信息（在线状态，型号，固件版本，网络信息）","originalRequest":{"method":"GET","header":[{"key":"ApiKey","value":"{{ApiKey}}","description":"申请的 开发者 api key","type":"text"}],"url":{"raw":"https://https://cloud.liankenet.com/api/device/device_info?deviceId={{deviceId}}&deviceKey={{deviceKey}}","protocol":"https","host":["https://cloud.liankenet.com"],"path":["api","device","device_info"],"query":[{"key":"deviceId","value":"{{deviceId}}","description":"设备ID"},{"key":"deviceKey","value":"{{deviceKey}}","description":"打印共享器 密钥"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 08 Dec 2023 03:33:08 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"532"},{"key":"Connection","value":"keep-alive"},{"key":"Strict-Transport-Security","value":"max-age=15724800; includeSubDomains"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Allow-Methods","value":"PUT, GET, POST, OPTIONS, DELETE"},{"key":"Access-Control-Allow-Headers","value":"DNT,web-token,app-token,Authorization,Accept,Origin,Keep-Alive,User-Agent,X-Mx-ReqToken,X-Data-Type,X-Auth-Token,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range,token,Cookie,apikey,session-id"},{"key":"Access-Control-Max-Age","value":"1728000"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"data\": {\n        \"info\": {\n            \"api_support\": 1,\n            \"device_type\": 2,\n            \"expire_date\": \"2024年8月25日\",\n            \"is_expire\": false,\n            \"mobile_support\": 1,\n            \"online\": 1,\n            \"remote_support\": 1,\n            \"usb_port_num\": 3\n        },\n        \"network\": {\n            \"lan\": {\n                \"dns\": \"\",\n                \"gateway\": \"\",\n                \"ipaddr\": \"169.254.1.188\",\n                \"link\": [\n                    false\n                ],\n                \"macaddr\": \"\",\n                \"netmask\": \"255.255.0.0\",\n                \"proto\": \"dhcp\"\n            },\n            \"wwan\": {\n                \"dns\": [\n                    \"192.168.5.29\"\n                ],\n                \"gateway\": \"192.168.5.29\",\n                \"ipaddr\": \"192.168.7.156\",\n                \"macaddr\": \"\",\n                \"netmask\": \"255.255.252.0\",\n                \"proto\": \"dhcp\"\n            }\n        },\n        \"version\": {\n            \"hardware\": \"LK300EW_D2\",\n            \"software\": \"2.1.113\"\n        }\n    },\n    \"msg\": \"success\"\n}"}],"_postman_id":"5c1d412a-d0db-4a88-8cdb-7891fea21cc2"},{"name":"取消打印任务","id":"fb96bde6-3294-49fd-b599-7f27095105e6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"ApiKey","value":"{{ApiKey}}","description":"<p>申请的 开发者 api key</p>\n","type":"text"}],"url":"https://cloud.liankenet.com/api/print/job?deviceId={{deviceId}}&deviceKey={{deviceKey}}&devicePort={{devicePort}}&task_id={{task_id}}","urlObject":{"path":["api","print","job"],"host":["https://cloud.liankenet.com"],"query":[{"description":{"content":"<p>设备ID</p>\n","type":"text/plain"},"key":"deviceId","value":"{{deviceId}}"},{"description":{"content":"<p>设备密钥</p>\n","type":"text/plain"},"key":"deviceKey","value":"{{deviceKey}}"},{"description":{"content":"<p>设备端口<br />\n1：USB1<br />\n2：USB2<br />\n……</p>\n","type":"text/plain"},"key":"devicePort","value":"{{devicePort}}"},{"description":{"content":"<p>任务ID</p>\n","type":"text/plain"},"key":"task_id","value":"{{task_id}}"}],"variable":[]}},"response":[{"id":"1a7662c8-a382-46e0-89f3-c9e3ecd6e16a","name":"成功取消打印任务","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"https://v2.api.dyfwq.cn/printer/job?deviceId=e4681c61d71c1b39&deviceKey=cwIgETNP9HYGt8SY&devicePort=1&jobId=1","protocol":"https","host":["v2","api","dyfwq","cn"],"path":["printer","job"],"query":[{"key":"deviceId","value":"e4681c61d71c1b39","description":"设备ID"},{"key":"deviceKey","value":"cwIgETNP9HYGt8SY","description":"设备秘钥"},{"key":"devicePort","value":"1","description":"设备端口<br/>\n1：USB1<br/>\n2：USB2<br/>\n……"},{"key":"jobId","value":"1","description":"任务ID"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Date","value":"Wed, 19 Jun 2019 06:20:36 GMT"},{"key":"Content-Length","value":"38"},{"key":"Connection","value":"close"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"msg\": \"success\"\n}"}],"_postman_id":"fb96bde6-3294-49fd-b599-7f27095105e6"},{"name":"获取支持的打印机型号列表","id":"be58de1f-4e8a-4c3a-a6f1-2186aa8f5e3f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"ApiKey","value":"{{ApiKey}}","description":"<p>申请的 开发者 api key</p>\n","type":"text"}],"url":"https://cloud.liankenet.com/api/print/printer_enum","description":"<p>获取云服务器打印机支持的所有打印机型号列表。<br />\n<em>(若列表中没有您打印机的型号，请反馈给我们，我们尽快适配)</em></p>\n","urlObject":{"path":["api","print","printer_enum"],"host":["https://cloud.liankenet.com"],"query":[],"variable":[]}},"response":[{"id":"fbd25267-02a6-4c36-9032-bb65918e49b8","name":"获取云服务器支持的打印机型号列表","originalRequest":{"method":"GET","header":[],"url":"https://v2.api.dyfwq.cn/printer/enum"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Date","value":"Wed, 19 Jun 2019 05:59:46 GMT"},{"key":"Content-Length","value":"721"},{"key":"Connection","value":"close"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"data\": [\n        \"DASCOM DS-660\",\n        \"XP-80\",\n        \"QR-588 LABEL\",\n        \"Microsoft XPS Document Writer\",\n        \"KM-300S\",\n        \"KM-300BU\",\n        \"KM-218PRE\",\n        \"KM-218BT\",\n        \"KM-218\",\n        \"KM-200SP\",\n        \"KM-200\",\n        \"KM-118S\",\n        \"KM-118HD\",\n        \"KM-118C\",\n        \"KM-118BT\",\n        \"KM-118\",\n        \"KM-1100\",\n        \"KM-108\",\n        \"KM-100S\",\n        \"KM-100HD\",\n        \"KM-100\",\n        \"HP LaserJet P1007\",\n        \"EPSON L310 Series\",\n        \"Deli DL-735K\",\n        \"Deli DL-730K\",\n        \"Deli DL-690K\",\n        \"Deli DL-635K\",\n        \"Deli DL-630K\",\n        \"Deli DL-590K\",\n        \"Deli DE-730K\",\n        \"Deli DE-690K\",\n        \"Deli DE-630K\",\n        \"Deli DE-590K\",\n        \"Canon MP280 series Printer\",\n        \"Brother MFC-7880DN Printer\"\n    ],\n    \"msg\": \"success\"\n}"}],"_postman_id":"be58de1f-4e8a-4c3a-a6f1-2186aa8f5e3f"},{"name":"搜索支持的打印机型号","id":"5994205b-1d41-4b52-8489-9eefffa23d5c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"description":"<p>申请的 开发者 api key</p>\n","key":"ApiKey","type":"text","value":"{{ApiKey}}"}],"body":{"mode":"raw","raw":"{\n    \"query\": \"HP 1020\"\n}","options":{"raw":{"language":"json"}}},"url":"https://cloud.liankenet.com/api/print/printer_enum","description":"<p>支持从printer_enum的打印机型号中进行模糊搜索</p>\n","urlObject":{"path":["api","print","printer_enum"],"host":["https://cloud.liankenet.com"],"query":[],"variable":[]}},"response":[{"id":"4ba00090-27fb-45a0-88e0-d5acb72c4f62","name":"搜索支持的打印机型号成功","originalRequest":{"method":"POST","header":[{"description":"申请的 开发者 api key","key":"ApiKey","type":"text","value":"{{ApiKey}}"}],"body":{"mode":"raw","raw":"{\n    \"query\": \"HP 1020\"\n}","options":{"raw":{"language":"json"}}},"url":"https://https://cloud.liankenet.com/api/print/printer_enum"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Sun, 27 Sep 2020 02:29:01 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"266"},{"key":"Connection","value":"keep-alive"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, OPTIONS, DELETE"},{"key":"Access-Control-Allow-Headers","value":"DNT,X-Mx-ReqToken,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Authorization,ApiKey"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"msg\": \"success\",\n    \"data\": [\n        \"HP LaserJet 1020\",\n        \"HP Laser NS 1020 PCLmS\",\n        \"HP LaserJet Professional CP1020 Series\",\n        \"Canon iR1020/1024/1025 UFRII LT\",\n        \"JIAPUWEI JPW1020\",\n        \"Kyocera Mita FS-1020D KX\",\n        \"Biaotop TP-1020\",\n        \"TEJIEYIDE TJYD1020\",\n        \"Kyocera FS-1020MFP GX\"\n    ]\n}"}],"_postman_id":"5994205b-1d41-4b52-8489-9eefffa23d5c"},{"name":"查询指定设备一天内打印任务信息","id":"81232c10-c277-4752-82d7-3c9e59c1a6c3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"ApiKey","value":"{{ApiKey}}","description":"<p>申请的 开发者 api key</p>\n","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"deviceId\": \"{{deviceId}}\",\n\t\"deviceKey\": \"{{deviceKey}}\"\n}"},"url":"https://cloud.liankenet.com/api/print/query_device_task","description":"<p>查询指定设备一天内打印任务信息</p>\n","urlObject":{"path":["api","print","query_device_task"],"host":["https://cloud.liankenet.com"],"query":[],"variable":[]}},"response":[{"id":"6451eb81-4107-4df1-a07c-e9ba4d61b728","name":"获取设备的所有打印任务信息","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"ApiKey","value":"{{ApiKey}}","description":"申请的 开发者 api key","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"deviceId\": \"{{deviceId}}\",\n\t\"deviceKey\": \"{{deviceKey}}\"\n}"},"url":"https://https://cloud.liankenet.com/api/print/query_device_task"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Wed, 02 Sep 2020 03:35:45 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"8317"},{"key":"Connection","value":"keep-alive"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, OPTIONS, DELETE"},{"key":"Access-Control-Allow-Headers","value":"DNT,X-Mx-ReqToken,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Authorization,ApiKey"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"msg\": \"success\",\n    \"data\": {\n        \"task_list\": [\n            {\n                \"task_id\": \"0241a927-a218-4ff6-894d-8fe427da794c\",\n                \"result\": {\n                    \"code\": 200,\n                    \"msg\": \"success\"\n                },\n                \"job_id\": \"\",\n                \"job_status\": 1,\n                \"status\": \"SUCCESS\",\n                \"create_at\": \"2020-09-02 11:02:36\",\n                \"updated_at\": \"2020-09-02 11:02:39\"\n            },\n            {\n                \"task_id\": \"69599185-cb22-4a11-8af0-65756911f5d8\",\n                \"result\": {\n                    \"code\": 200,\n                    \"msg\": \"success\"\n                },\n                \"job_id\": \"\",\n                \"job_status\": 1,\n                \"status\": \"SUCCESS\",\n                \"create_at\": \"2020-09-02 11:00:33\",\n                \"updated_at\": \"2020-09-02 11:00:38\"\n            },\n            {\n                \"task_id\": \"91d6d3d4-8281-4d12-b37c-5b949ea8dd70\",\n                \"result\": {\n                    \"code\": 200,\n                    \"msg\": \"success\"\n                },\n                \"job_id\": \"\",\n                \"job_status\": 1,\n                \"status\": \"SUCCESS\",\n                \"create_at\": \"2020-09-02 10:55:32\",\n                \"updated_at\": \"2020-09-02 10:55:39\"\n            },\n            {\n                \"task_id\": \"b98a3a4d-efe9-4195-a105-64617edd4036\",\n                \"result\": {\n                    \"code\": 500,\n                    \"msg\": \"设备连接异常，请检查设备网络: 错误详情：server id not found\"\n                },\n                \"job_id\": \"\",\n                \"job_status\": 0,\n                \"status\": \"SUCCESS\",\n                \"create_at\": \"2020-09-02 10:54:41\",\n                \"updated_at\": \"2020-09-02 10:55:26\"\n            },\n            {\n                \"task_id\": \"91f501f8-68b7-4645-ad61-d276afa51a9f\",\n                \"result\": {\n                    \"code\": 200,\n                    \"msg\": \"success\"\n                },\n                \"job_id\": \"\",\n                \"job_status\": 1,\n                \"status\": \"SUCCESS\",\n                \"create_at\": \"2020-09-02 10:52:38\",\n                \"updated_at\": \"2020-09-02 10:52:45\"\n            },\n            {\n                \"task_id\": \"91df13b5-cc8e-4eb5-b1c9-cd7069fae7e7\",\n                \"result\": {\n                    \"code\": 200,\n                    \"msg\": \"success\"\n                },\n                \"job_id\": \"\",\n                \"job_status\": 1,\n                \"status\": \"SUCCESS\",\n                \"create_at\": \"2020-09-02 10:52:30\",\n                \"updated_at\": \"2020-09-02 10:52:35\"\n            },\n            {\n                \"task_id\": \"8dbc4f98-0165-4809-b5b5-c81db3a5a784\",\n                \"result\": {\n                    \"code\": 200,\n                    \"msg\": \"success\"\n                },\n                \"job_id\": \"\",\n                \"job_status\": 1,\n                \"status\": \"SUCCESS\",\n                \"create_at\": \"2020-09-02 10:42:09\",\n                \"updated_at\": \"2020-09-02 10:45:32\"\n            },\n            {\n                \"task_id\": \"76a1e3af-5daa-4507-8ebc-99c3cb4ad096\",\n                \"result\": {\n                    \"code\": 200,\n                    \"msg\": \"success\"\n                },\n                \"job_id\": \"\",\n                \"job_status\": 1,\n                \"status\": \"SUCCESS\",\n                \"create_at\": \"2020-09-01 21:48:06\",\n                \"updated_at\": \"2020-09-01 21:48:11\"\n            },\n            {\n                \"task_id\": \"d1202e2e-17ba-41e7-b5c6-00083916b4b8\",\n                \"result\": {\n                    \"code\": 200,\n                    \"msg\": \"success\"\n                },\n                \"job_id\": \"\",\n                \"job_status\": 1,\n                \"status\": \"SUCCESS\",\n                \"create_at\": \"2020-09-01 21:47:41\",\n                \"updated_at\": \"2020-09-01 21:47:45\"\n            },\n            {\n                \"task_id\": \"b35dc664-b6ad-47f2-b56e-61f7918c6eb4\",\n                \"result\": {\n                    \"code\": 200,\n                    \"msg\": \"success\"\n                },\n                \"job_id\": \"\",\n                \"job_status\": 1,\n                \"status\": \"SUCCESS\",\n                \"create_at\": \"2020-09-01 21:47:29\",\n                \"updated_at\": \"2020-09-01 21:47:33\"\n            },\n            {\n                \"task_id\": \"d910af11-f161-40cf-b5bd-2c91e75a10b9\",\n                \"result\": {\n                    \"code\": 200,\n                    \"msg\": \"success\"\n                },\n                \"job_id\": \"\",\n                \"job_status\": 1,\n                \"status\": \"SUCCESS\",\n                \"create_at\": \"2020-09-01 21:47:20\",\n                \"updated_at\": \"2020-09-01 21:47:24\"\n            },\n            {\n                \"task_id\": \"1dc3638e-18d9-4c77-ba8b-bf38e5c5329d\",\n                \"result\": {\n                    \"code\": 200,\n                    \"msg\": \"success\"\n                },\n                \"job_id\": \"\",\n                \"job_status\": 1,\n                \"status\": \"SUCCESS\",\n                \"create_at\": \"2020-09-01 21:47:08\",\n                \"updated_at\": \"2020-09-01 21:47:13\"\n            },\n            {\n                \"task_id\": \"87df59f8-d617-4307-8a08-4bc8b08388ac\",\n                \"result\": {\n                    \"code\": 200,\n                    \"msg\": \"success\"\n                },\n                \"job_id\": \"\",\n                \"job_status\": 1,\n                \"status\": \"SUCCESS\",\n                \"create_at\": \"2020-09-01 21:46:22\",\n                \"updated_at\": \"2020-09-01 21:46:26\"\n            },\n            {\n                \"task_id\": \"dd998193-f7af-4b85-8075-45a1305dadf6\",\n                \"result\": {\n                    \"code\": 200,\n                    \"msg\": \"success\"\n                },\n                \"job_id\": \"\",\n                \"job_status\": 1,\n                \"status\": \"SUCCESS\",\n                \"create_at\": \"2020-09-01 21:44:34\",\n                \"updated_at\": \"2020-09-01 21:44:38\"\n            },\n            {\n                \"task_id\": \"fa166254-d302-48d7-9e84-5311fe41c6ac\",\n                \"result\": {\n                    \"code\": 200,\n                    \"msg\": \"success\"\n                },\n                \"job_id\": \"\",\n                \"job_status\": 1,\n                \"status\": \"SUCCESS\",\n                \"create_at\": \"2020-09-01 18:08:51\",\n                \"updated_at\": \"2020-09-01 18:08:56\"\n            },\n            {\n                \"task_id\": \"8524ddea-16ca-4e8e-8fbe-3ba354a63058\",\n                \"result\": {\n                    \"code\": 200,\n                    \"msg\": \"success\"\n                },\n                \"job_id\": \"\",\n                \"job_status\": 1,\n                \"status\": \"SUCCESS\",\n                \"create_at\": \"2020-09-01 18:08:41\",\n                \"updated_at\": \"2020-09-01 18:08:46\"\n            },\n            {\n                \"task_id\": \"e3047717-475a-45c8-903a-640c84ef3ae2\",\n                \"result\": {\n                    \"code\": 200,\n                    \"msg\": \"success\"\n                },\n                \"job_id\": \"\",\n                \"job_status\": 1,\n                \"status\": \"SUCCESS\",\n                \"create_at\": \"2020-09-01 18:07:29\",\n                \"updated_at\": \"2020-09-01 18:07:37\"\n            },\n            {\n                \"task_id\": \"b20839b8-8cc5-4d9c-9753-ce1543d43f25\",\n                \"result\": {\n                    \"code\": 200,\n                    \"msg\": \"success\"\n                },\n                \"job_id\": \"\",\n                \"job_status\": 1,\n                \"status\": \"SUCCESS\",\n                \"create_at\": \"2020-09-01 18:05:57\",\n                \"updated_at\": \"2020-09-01 18:06:01\"\n            },\n            {\n                \"task_id\": \"91289972-b04c-4892-b25e-e38afe14a51f\",\n                \"result\": {\n                    \"code\": 200,\n                    \"msg\": \"success\"\n                },\n                \"job_id\": \"\",\n                \"job_status\": 1,\n                \"status\": \"SUCCESS\",\n                \"create_at\": \"2020-09-01 18:05:37\",\n                \"updated_at\": \"2020-09-01 18:05:41\"\n            },\n            {\n                \"task_id\": \"7adbc4c1-c007-4312-81c4-fc3bb9bd01da\",\n                \"result\": {\n                    \"code\": 200,\n                    \"msg\": \"success\"\n                },\n                \"job_id\": \"\",\n                \"job_status\": 1,\n                \"status\": \"SUCCESS\",\n                \"create_at\": \"2020-09-01 18:05:22\",\n                \"updated_at\": \"2020-09-01 18:05:28\"\n            },\n            {\n                \"task_id\": \"686a947b-e4e2-4178-8315-543dea680b93\",\n                \"result\": {\n                    \"code\": 200,\n                    \"msg\": \"success\"\n                },\n                \"job_id\": \"\",\n                \"job_status\": 1,\n                \"status\": \"SUCCESS\",\n                \"create_at\": \"2020-09-01 18:05:11\",\n                \"updated_at\": \"2020-09-01 18:05:16\"\n            },\n            {\n                \"task_id\": \"48a4469b-3b40-47dd-ab2d-52d991651661\",\n                \"result\": {\n                    \"code\": 200,\n                    \"msg\": \"success\"\n                },\n                \"job_id\": \"\",\n                \"job_status\": 1,\n                \"status\": \"SUCCESS\",\n                \"create_at\": \"2020-09-01 17:32:18\",\n                \"updated_at\": \"2020-09-01 17:32:39\"\n            },\n            {\n                \"task_id\": \"a0214c1b-a9da-4fd7-bde8-8871195623ea\",\n                \"result\": {\n                    \"code\": 502,\n                    \"msg\": \"转换文件格式失败: 无法旋转文件方向，请检查纸张横竖向是否设置错误\"\n                },\n                \"job_id\": \"\",\n                \"job_status\": 0,\n                \"status\": \"SUCCESS\",\n                \"create_at\": \"2020-09-01 17:30:18\",\n                \"updated_at\": \"2020-09-01 17:30:36\"\n            },\n            {\n                \"task_id\": \"2e60ff43-7ec0-4f18-96e9-e85cd5cfcc30\",\n                \"result\": {\n                    \"code\": 200,\n                    \"msg\": \"success\"\n                },\n                \"job_id\": \"\",\n                \"job_status\": 1,\n                \"status\": \"SUCCESS\",\n                \"create_at\": \"2020-09-01 17:30:02\",\n                \"updated_at\": \"2020-09-01 17:30:12\"\n            },\n            {\n                \"task_id\": \"d2ed94eb-240a-4071-bef7-3df1f76fc480\",\n                \"result\": {\n                    \"code\": 200,\n                    \"msg\": \"success\"\n                },\n                \"job_id\": \"\",\n                \"job_status\": 1,\n                \"status\": \"SUCCESS\",\n                \"create_at\": \"2020-09-01 17:29:22\",\n                \"updated_at\": \"2020-09-01 17:29:32\"\n            },\n            {\n                \"task_id\": \"7b47f626-af74-4f3f-9677-c04e75ebc781\",\n                \"result\": {\n                    \"code\": 200,\n                    \"msg\": \"success\"\n                },\n                \"job_id\": \"\",\n                \"job_status\": 1,\n                \"status\": \"SUCCESS\",\n                \"create_at\": \"2020-09-01 17:28:46\",\n                \"updated_at\": \"2020-09-01 17:28:54\"\n            },\n            {\n                \"task_id\": \"0e7991cb-5999-41b2-b79a-91425c4170e7\",\n                \"result\": {\n                    \"code\": 200,\n                    \"msg\": \"success\"\n                },\n                \"job_id\": \"\",\n                \"job_status\": 1,\n                \"status\": \"SUCCESS\",\n                \"create_at\": \"2020-09-01 17:28:03\",\n                \"updated_at\": \"2020-09-01 17:28:19\"\n            },\n            {\n                \"task_id\": \"2bbfe936-79f8-4abd-9f4b-121fd8c4e7f3\",\n                \"result\": {\n                    \"code\": 200,\n                    \"msg\": \"success\"\n                },\n                \"job_id\": \"\",\n                \"job_status\": 1,\n                \"status\": \"SUCCESS\",\n                \"create_at\": \"2020-09-01 17:27:19\",\n                \"updated_at\": \"2020-09-01 17:27:31\"\n            },\n            {\n                \"task_id\": \"19c7824e-f442-410f-90f8-7e8da73ea611\",\n                \"result\": {\n                    \"code\": 200,\n                    \"msg\": \"success\"\n                },\n                \"job_id\": \"\",\n                \"job_status\": 1,\n                \"status\": \"SUCCESS\",\n                \"create_at\": \"2020-09-01 17:26:39\",\n                \"updated_at\": \"2020-09-01 17:26:55\"\n            },\n            {\n                \"task_id\": \"964017df-11b6-4a84-b40d-0f44fc5407b6\",\n                \"result\": {\n                    \"code\": 200,\n                    \"msg\": \"success\"\n                },\n                \"job_id\": \"\",\n                \"job_status\": 1,\n                \"status\": \"SUCCESS\",\n                \"create_at\": \"2020-09-01 17:26:18\",\n                \"updated_at\": \"2020-09-01 17:26:32\"\n            },\n            {\n                \"task_id\": \"31fc44d2-5ad0-4563-80bf-34159f29f541\",\n                \"result\": {\n                    \"code\": 200,\n                    \"msg\": \"success\"\n                },\n                \"job_id\": \"\",\n                \"job_status\": 1,\n                \"status\": \"SUCCESS\",\n                \"create_at\": \"2020-09-01 17:25:41\",\n                \"updated_at\": \"2020-09-01 17:25:51\"\n            },\n            {\n                \"task_id\": \"eea34278-2a00-4c5f-b917-ccf13c3c2321\",\n                \"result\": {\n                    \"code\": 200,\n                    \"msg\": \"success\"\n                },\n                \"job_id\": \"\",\n                \"job_status\": 1,\n                \"status\": \"SUCCESS\",\n                \"create_at\": \"2020-09-01 17:24:24\",\n                \"updated_at\": \"2020-09-01 17:24:40\"\n            },\n            {\n                \"task_id\": \"754403c5-ae33-4310-a04a-f77fd8444f4c\",\n                \"result\": {\n                    \"code\": 200,\n                    \"msg\": \"success\"\n                },\n                \"job_id\": \"\",\n                \"job_status\": 1,\n                \"status\": \"SUCCESS\",\n                \"create_at\": \"2020-09-01 17:23:00\",\n                \"updated_at\": \"2020-09-01 17:23:10\"\n            },\n            {\n                \"task_id\": \"4375eb0d-57a9-4abb-a0c8-bed4f23ea346\",\n                \"result\": {\n                    \"code\": 200,\n                    \"msg\": \"success\"\n                },\n                \"job_id\": \"\",\n                \"job_status\": 1,\n                \"status\": \"SUCCESS\",\n                \"create_at\": \"2020-09-01 17:22:45\",\n                \"updated_at\": \"2020-09-01 17:22:57\"\n            },\n            {\n                \"task_id\": \"5362b09a-ffcc-484d-b8d3-db62e6774f48\",\n                \"result\": {\n                    \"code\": 200,\n                    \"msg\": \"success\"\n                },\n                \"job_id\": \"\",\n                \"job_status\": 1,\n                \"status\": \"SUCCESS\",\n                \"create_at\": \"2020-09-01 17:20:09\",\n                \"updated_at\": \"2020-09-01 17:20:28\"\n            },\n            {\n                \"task_id\": \"a914ac53-6f20-42b9-b559-da691fc2ee05\",\n                \"result\": {\n                    \"code\": 200,\n                    \"msg\": \"success\"\n                },\n                \"job_id\": \"\",\n                \"job_status\": 1,\n                \"status\": \"SUCCESS\",\n                \"create_at\": \"2020-09-01 17:17:48\",\n                \"updated_at\": \"2020-09-01 17:17:56\"\n            },\n            {\n                \"task_id\": \"38c6d0d2-c6fd-4e1f-b715-79cf00fae765\",\n                \"result\": {\n                    \"code\": 200,\n                    \"msg\": \"success\"\n                },\n                \"job_id\": \"\",\n                \"job_status\": 1,\n                \"status\": \"SUCCESS\",\n                \"create_at\": \"2020-09-01 17:12:49\",\n                \"updated_at\": \"2020-09-01 17:13:08\"\n            },\n            {\n                \"task_id\": \"f25d3dd4-1351-4ade-be41-b27a271d2206\",\n                \"result\": {\n                    \"code\": 200,\n                    \"msg\": \"success\"\n                },\n                \"job_id\": \"\",\n                \"job_status\": 1,\n                \"status\": \"SUCCESS\",\n                \"create_at\": \"2020-09-01 17:12:10\",\n                \"updated_at\": \"2020-09-01 17:12:27\"\n            },\n            {\n                \"task_id\": \"f808e90d-785c-472e-b227-95da770dddd0\",\n                \"result\": {\n                    \"code\": 200,\n                    \"msg\": \"success\"\n                },\n                \"job_id\": \"\",\n                \"job_status\": 1,\n                \"status\": \"SUCCESS\",\n                \"create_at\": \"2020-09-01 16:21:22\",\n                \"updated_at\": \"2020-09-01 16:21:30\"\n            }\n        ]\n    }\n}"}],"_postman_id":"81232c10-c277-4752-82d7-3c9e59c1a6c3"},{"name":"提交未识别打印机适配申请","id":"2e3a6383-1607-41b0-bf6e-6e05fc30233d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"},{"description":"<p>申请的 开发者 api key</p>\n","key":"ApiKey","type":"text","value":"{{ApiKey}}"}],"body":{"mode":"raw","raw":"{\n\t\"deviceId\": \"{{deviceId}}\",\n\t\"deviceKey\": \"{{deviceKey}}\",\n\t\"printerId\": \"1\",\n\t\"phone\": \"13512345678\"\n}"},"url":"https://cloud.liankenet.com/api/driver/uninstall_driver_event","description":"<p>仅用于未适配机型通知适配，提交适配申请后将会在72小时内进行适配，适配完成通知会发送到提交的手机号</p>\n<ul>\n<li>\"printerId\": <code>在 printer_list 对应的 id</code></li>\n<li>\"phone\": <code>安装成功通知回调手机号码</code></li>\n</ul>\n","urlObject":{"path":["api","driver","uninstall_driver_event"],"host":["https://cloud.liankenet.com"],"query":[],"variable":[]}},"response":[{"id":"58fd4d29-e5a7-4718-8261-bc4460c74135","name":"无效手机号返回","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"},{"description":"申请的 开发者 api key","key":"ApiKey","type":"text","value":""}],"body":{"mode":"raw","raw":"{\n\t\"deviceId\": \"wsyl-test-06\",\n\t\"deviceKey\": \"wsyl-test-06\",\n\t\"printerId\": \"1\",\n\t\"phone\": \"112312\"\n}"},"url":"https://https://cloud.liankenet.com/api/driver/uninstall_driver_event"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Fri, 27 Dec 2019 06:53:42 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"52"},{"key":"Connection","value":"keep-alive"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, OPTIONS, DELETE"},{"key":"Access-Control-Allow-Headers","value":"DNT,X-Mx-ReqToken,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Authorization,ApiKey"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 403,\n    \"msg\": \"无效手机号\"\n}"},{"id":"6ae73377-f504-4d27-9be2-d720b9ec7bf8","name":"提交成功","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"},{"description":"申请的 开发者 api key","key":"ApiKey","type":"text","value":""}],"body":{"mode":"raw","raw":"{\n\t\"deviceId\": \"wsyl-test-06\",\n\t\"deviceKey\": \"wsyl-test-06\",\n\t\"printerId\": \"1\",\n\t\"phone\": \"13512345678\"\n}"},"url":"https://https://cloud.liankenet.com/api/driver/uninstall_driver_event"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Fri, 27 Dec 2019 06:54:19 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"29"},{"key":"Connection","value":"keep-alive"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, OPTIONS, DELETE"},{"key":"Access-Control-Allow-Headers","value":"DNT,X-Mx-ReqToken,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Authorization,ApiKey"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"msg\": \"success\"\n}"}],"_postman_id":"2e3a6383-1607-41b0-bf6e-6e05fc30233d"},{"name":"异步刷新设备最新信息","id":"46b99fd6-3d1e-4849-a0da-46b03d011219","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"ApiKey","value":"{{ApiKey}}","description":"<p>申请的 开发者 api key</p>\n","type":"text"}],"url":"https://cloud.liankenet.com/api/device/async_refresh_device_info?deviceId={{deviceId}}&deviceKey={{deviceKey}}","description":"<p><strong>固件版本大于等于2.1.112时，刷新操作由链科内部处理，无需调用该接口</strong></p>\n<p>刷新打印服务器在线状态，调用该接口后会立即返回，后台队列进行刷新操作；该接口与同步接口相同，同步服务器与打印服务器的设备信息以及USB口实时信息，保证打印机不出现乱码等情况</p>\n<p><em><strong>使用</strong></em><a href=\"https://documenter.getpostman.com/view/1758872/SWE83H6u#5c1d412a-d0db-4a88-8cdb-7891fea21cc2\"><i><b>device_info</b></i></a><em><strong>接口或者开启add_job的reportDeviceStatus代替查询在线状态。</strong></em></p>\n<p>返回的结果中<code>code</code>代表设备状态，其中：</p>\n<ul>\n<li><p><code>200</code> 请求成功</p>\n</li>\n<li><p><code>401</code> 正在刷新中</p>\n</li>\n<li><p><code>404</code> 设备id或密码错误</p>\n</li>\n<li><p><code>10009</code> 请求频繁，单个设备同时只允许调用一次</p>\n</li>\n</ul>\n","urlObject":{"path":["api","device","async_refresh_device_info"],"host":["https://cloud.liankenet.com"],"query":[{"key":"deviceId","value":"{{deviceId}}"},{"key":"deviceKey","value":"{{deviceKey}}"}],"variable":[]}},"response":[{"id":"00f9209e-499f-4213-9fc6-5663caea85bf","name":"异步刷新设备最新信息","originalRequest":{"method":"GET","header":[{"key":"ApiKey","value":"{{ApiKey}}","description":"申请的 开发者 api key","type":"text"}],"url":{"raw":"https://https://cloud.liankenet.com/api/device/async_refresh_device_info?deviceId={{deviceId}}&deviceKey={{deviceKey}}","protocol":"https","host":["https://cloud.liankenet.com"],"path":["api","device","async_refresh_device_info"],"query":[{"key":"deviceId","value":"{{deviceId}}"},{"key":"deviceKey","value":"{{deviceKey}}"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Fri, 06 Aug 2021 02:15:20 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"29"},{"key":"Connection","value":"keep-alive"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, OPTIONS, DELETE"},{"key":"Access-Control-Allow-Headers","value":"DNT,X-Mx-ReqToken,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Authorization,ApiKey,SESSION-ID"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"msg\": \"success\"\n}"}],"_postman_id":"46b99fd6-3d1e-4849-a0da-46b03d011219"},{"name":"实时获取打印机状态","id":"9966c8c3-3c94-4436-be1b-81f8e10939f4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"ApiKey","value":"{{ApiKey}}","description":"<p>申请的 开发者 api key</p>\n","type":"text"}],"url":"https://cloud.liankenet.com/api/device/printer_status?deviceId={{deviceId}}&deviceKey={{deviceKey}}&usbPort={{devicePort}}","description":"<p>刷新打印状态信息，如盖子打开，缺纸，缺碳带等。</p>\n<p>注：</p>\n<ol>\n<li><p>暂只支持有限种类的打印机，使用此接口请务必先确认打印机列表返回的<code>support_status</code>字段为true。</p>\n</li>\n<li><p><strong>该功能实时同步打印机数据，接口返回时间会偏慢（影响因素，客户网络状态以及打印机返回速度），请需要时再调用；该接口限制同一个设备并发数只能为1，同设备相同usb口短时间内多次请求将返回请求繁忙</strong></p>\n</li>\n<li><p>此功能建议高于2.1.60版本固件使用</p>\n</li>\n</ol>\n<p>返回的结果:</p>\n<ul>\n<li><p><code>headOpened</code> 盖子已开启</p>\n</li>\n<li><p><code>paperJam</code> 卡纸</p>\n</li>\n<li><p><code>outOfPaper</code> 缺纸</p>\n</li>\n<li><p><code>outOfRibbon</code> 缺碳带 (只适用于带碳带功能的标签机型)</p>\n</li>\n<li><p><code>outOfInk</code> 低墨量/碳粉 (只用于部分激光喷墨机型)</p>\n</li>\n<li><p><code>pause</code> 打印机暂停</p>\n</li>\n<li><p><code>printing</code> 打印中</p>\n</li>\n<li><p><code>msg</code> 信息</p>\n</li>\n</ul>\n<p>部分机型会返回的字段：</p>\n<ul>\n<li><p><code>statusCode</code> 状态码</p>\n</li>\n<li><p><code>errCode</code> 错误码</p>\n</li>\n</ul>\n","urlObject":{"path":["api","device","printer_status"],"host":["https://cloud.liankenet.com"],"query":[{"key":"deviceId","value":"{{deviceId}}"},{"key":"deviceKey","value":"{{deviceKey}}"},{"key":"usbPort","value":"{{devicePort}}"}],"variable":[]}},"response":[{"id":"9e342dbd-8a9a-458c-9856-772e3329be6e","name":"缺纸示例","originalRequest":{"method":"GET","header":[{"key":"ApiKey","value":"{{ApiKey}}","description":"申请的 开发者 api key","type":"text"}],"url":{"raw":"http://https://cloud.liankenet.com/api/device/printer_status?deviceId={{deviceId}}&deviceKey={{deviceKey}}&usbPort=1","protocol":"http","host":["https://cloud.liankenet.com"],"path":["api","device","printer_status"],"query":[{"key":"deviceId","value":"{{deviceId}}"},{"key":"deviceKey","value":"{{deviceKey}}"},{"key":"printerModel","value":"{{printerModel}}","disabled":true},{"key":"usbPort","value":"1"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 05 Dec 2023 03:44:40 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"202"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"data\": {\n        \"errCode\": null,\n        \"headOpened\": false,\n        \"msg\": \"Cannot feed paper.\",\n        \"outOfInk\": false,\n        \"outOfPaper\": true,\n        \"paperJam\": false,\n        \"pause\": true,\n        \"printing\": false,\n        \"statusCode\": \"41208\"\n    },\n    \"msg\": \"success\"\n}"},{"id":"3454c00c-1fda-4d22-b3f5-6bbc6e763681","name":"未插入打印机示例","originalRequest":{"method":"GET","header":[{"key":"ApiKey","value":"{{ApiKey}}","description":"申请的 开发者 api key","type":"text"}],"url":{"raw":"http://https://cloud.liankenet.com/api/device/printer_status?deviceId={{deviceId}}&deviceKey={{deviceKey}}&usbPort={{devicePort}}","protocol":"http","host":["https://cloud.liankenet.com"],"path":["api","device","printer_status"],"query":[{"key":"deviceId","value":"{{deviceId}}"},{"key":"deviceKey","value":"{{deviceKey}}"},{"key":"usbPort","value":"{{devicePort}}"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 05 Dec 2023 03:45:51 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"136"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 497,\n    \"msg\": \"未检测到打印机，请插好打印机并刷新再试\"\n}"}],"_postman_id":"9966c8c3-3c94-4436-be1b-81f8e10939f4"},{"name":"【可选|网络打印机】搜索局域网内网络打印机","id":"d7e19afe-920e-4a20-8a55-4382c1f473b1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"description":"<p>申请的 开发者 api key</p>\n","key":"ApiKey","type":"text","value":"{{ApiKey}}"}],"url":"https://cloud.liankenet.com/api/printer/refresh_network_printer?deviceId={{deviceId}}&deviceKey={{deviceKey}}","description":"<p>*** 该接口仅网络打印机使用，USB接盒子的打印机无法使用 ***</p>\n<p>该接口会搜索设备局域网内支持的网络打印机，返回的结果total代表搜索到的打印机数量</p>\n<p>默认设备启动会自动调用一次，12小时内多次重启盒子只会调用一次</p>\n","urlObject":{"path":["api","printer","refresh_network_printer"],"host":["https://cloud.liankenet.com"],"query":[{"description":{"content":"<p>设备id</p>\n","type":"text/plain"},"key":"deviceId","value":"{{deviceId}}"},{"disabled":true,"key":"","value":""},{"key":"deviceKey","value":"{{deviceKey}}"}],"variable":[]}},"response":[],"_postman_id":"d7e19afe-920e-4a20-8a55-4382c1f473b1"},{"name":"【限时免费】获取文档/PDF页数","event":[{"listen":"test","script":{"id":"5c43cca8-f583-45bb-8d60-75dfa2ce02f3","exec":["var jsonData = pm.response.json();","// save JWT value for auth","pm.environment.set(\"task_id\", jsonData.data.task_id);",""],"type":"text/javascript"}}],"id":"8d413740-23b5-4939-89b3-0ab842e8e58f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"ApiKey","value":"{{ApiKey}}","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"deviceId","value":"{{deviceId}}","type":"text"},{"key":"deviceKey","value":"{{deviceKey}}","type":"text"},{"key":"devicePort","value":"{{devicePort}}","type":"text"},{"key":"printerModel","value":"{{printerModel}}","type":"text"},{"key":"dmPaperSize","value":"9","description":"<p>纸张大小，会影响最终页码，参考打印接口</p>\n","type":"text"},{"key":"jobFile","description":"<p>文件，可使用url</p>\n","type":"file","src":"Hollow-Clock-4.pdf"}]},"url":"https://cloud.liankenet.com/api/print/file_pages","description":"<p><strong>该接口处于测试期间，限时免费，免费服务无SLA保障，后续会根据实际使用情况进行定价收费。</strong></p>\n<p>如该接口不符合您的要求，阿里云有相同业务，可使用阿里云接口代替此功能</p>\n<p>注意事项</p>\n<ol>\n<li><p>每次仅支持单个文件</p>\n</li>\n<li><p>该接口请求耗时较久，使用url时，下载文件须5s秒完成</p>\n</li>\n<li><p>传入文件不得大于20M</p>\n</li>\n<li><p>禁止无限重复尝试相同错误文件，如尝试超过一定次数，将禁用请求一段时间</p>\n</li>\n</ol>\n","urlObject":{"path":["api","print","file_pages"],"host":["https://cloud.liankenet.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"8d413740-23b5-4939-89b3-0ab842e8e58f"},{"name":"解除打印失败次数过多导致的异常限制","id":"cf31c2a9-716f-4db0-801b-a3b816de4fb7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"deviceId\": \"{{deviceId}}\",\n    \"deviceKey\": \"{{deviceKey}}\",\n    \"devicePort\": \"{{devicePort}}\"\n}","options":{"raw":{"language":"json"}}},"url":"https://cloud.liankenet.com/api/print/reset_printing_error_limit","description":"<p>在部分情况下，单个设备出现异常，此时依旧发起打印，连续触发打印失败达30次后，将触发平台限制；此时可通知用户排除打印机或设备异常，处理完成后通过该接口进行解除，该接口单设备每天最大可调用10次，请合理使用。</p>\n<p>返回值</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>code</strong></th>\n<th><strong>msg</strong></th>\n<th><strong>含义</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>200</td>\n<td>success</td>\n<td>清除任务错误成功</td>\n</tr>\n<tr>\n<td>10009</td>\n<td>请求频繁</td>\n<td>单设备同时刻内仅允许一个请求</td>\n</tr>\n<tr>\n<td>11200</td>\n<td>重置打印失败限制失败，当天重置次数超过限制</td>\n<td>触发每天最大调用数限制</td>\n</tr>\n<tr>\n<td>11201</td>\n<td>暂无打印失败记录，无法重置</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["api","print","reset_printing_error_limit"],"host":["https://cloud.liankenet.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"cf31c2a9-716f-4db0-801b-a3b816de4fb7"},{"name":"重启设备接口","id":"e2fc965f-62c6-4fd8-9886-febda9670732","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"ApiKey","value":"{{ApiKey}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"deviceId\": \"{{deviceId}}\",\n    \"deviceKey\": \"{{deviceKey}}\"\n}","options":{"raw":{"language":"json"}}},"url":"https://cloud.liankenet.com/api/device/async_device_reboot","description":"<p>重启设备后，设备重启过程中将无法打印，请谨慎操作；该接口不支持并发，发起后将异步执行重启</p>\n<p>返回值</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>code</strong></th>\n<th><strong>msg</strong></th>\n<th><strong>含义</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>200</td>\n<td>success</td>\n<td>重启成功</td>\n</tr>\n<tr>\n<td>401</td>\n<td>正在重启中</td>\n<td>请求后正在执行重启操作时将返回</td>\n</tr>\n<tr>\n<td>5002</td>\n<td>设备已离线，请检查云指示灯</td>\n<td>重启需要设备在线</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["api","device","async_device_reboot"],"host":["https://cloud.liankenet.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"e2fc965f-62c6-4fd8-9886-febda9670732"},{"name":"获取打印机支持的纸张尺寸","id":"490b68e5-7448-42c3-865f-3b53a0e9e9ee","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"ApiKey","value":"{{ApiKey}}","description":"<p>申请的 开发者 api key</p>\n","type":"text"}],"body":{"mode":"formdata","formdata":[]},"url":"https://cloud.liankenet.com/api/print/paper_dimension_list?printerModel={{printerModel}}","description":"<p>获取目标打印机设备参数:</p>\n<ul>\n<li><code>printerModel</code> 打印机型号，对应printer_list中driver_name</li>\n</ul>\n<p>返回值</p>\n<ul>\n<li>physical_height纸张物理高度，单位0.1毫米</li>\n<li>physical_width纸张物理宽度，单位0.1毫米</li>\n<li>printable_height可打印范围高度，单位0.1毫米</li>\n<li>printable_width可打印范围宽度，单位0.1毫米</li>\n<li>paper_id纸张id，对应dmPaperSize</li>\n</ul>\n","urlObject":{"path":["api","print","paper_dimension_list"],"host":["https://cloud.liankenet.com"],"query":[{"description":{"content":"<p> 打印机型号，对应printer_list中driver_name</p>\n","type":"text/plain"},"key":"printerModel","value":"{{printerModel}}"}],"variable":[]}},"response":[{"id":"62249615-0911-415d-ae17-3568366fdade","name":"打印机尺寸","originalRequest":{"method":"GET","header":[{"key":"ApiKey","value":"{{ApiKey}}","description":"申请的 开发者 api key","type":"text"}],"url":{"raw":"https://https://cloud.liankenet.com/api/print/paper_dimension_list?printerModel={{printerModel}}","protocol":"https","host":["https://cloud.liankenet.com"],"path":["api","print","paper_dimension_list"],"query":[{"key":"printerModel","value":"{{printerModel}}","description":" 打印机型号，对应printer_list中driver_name\n\n\n\n"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Wed, 28 Jun 2023 10:34:01 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"2106"},{"key":"Connection","value":"keep-alive"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, OPTIONS, DELETE"},{"key":"Access-Control-Allow-Headers","value":"DNT,X-Mx-ReqToken,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Authorization,ApiKey,SESSION-ID"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"msg\": \"success\",\n    \"data\": {\n        \"16K\": {\n            \"paper_id\": 257,\n            \"physical_height\": 2730,\n            \"physical_width\": 1968,\n            \"printable_height\": 2650,\n            \"printable_width\": 1840\n        },\n        \"8.5x13\": {\n            \"paper_id\": 258,\n            \"physical_height\": 3302,\n            \"physical_width\": 2159,\n            \"printable_height\": 3220,\n            \"printable_width\": 2060\n        },\n        \"明信片\": {\n            \"paper_id\": 260,\n            \"physical_height\": 1480,\n            \"physical_width\": 1000,\n            \"printable_height\": 1400,\n            \"printable_width\": 870\n        },\n        \"双面明信片\": {\n            \"paper_id\": 261,\n            \"physical_height\": 2000,\n            \"physical_width\": 1480,\n            \"printable_height\": 1920,\n            \"printable_width\": 1350\n        },\n        \"A6\": {\n            \"paper_id\": 262,\n            \"physical_height\": 1480,\n            \"physical_width\": 1050,\n            \"printable_height\": 1400,\n            \"printable_width\": 920\n        },\n        \"B5 (ISO)\": {\n            \"paper_id\": 259,\n            \"physical_height\": 2500,\n            \"physical_width\": 1760,\n            \"printable_height\": 2420,\n            \"printable_width\": 1680\n        },\n        \"B5 (JIS)\": {\n            \"paper_id\": 13,\n            \"physical_height\": 2570,\n            \"physical_width\": 1820,\n            \"printable_height\": 2490,\n            \"printable_width\": 1730\n        },\n        \"Monarch 信封\": {\n            \"paper_id\": 37,\n            \"physical_height\": 1905,\n            \"physical_width\": 983,\n            \"printable_height\": 1820,\n            \"printable_width\": 870\n        },\n        \"B5 信封\": {\n            \"paper_id\": 34,\n            \"physical_height\": 2500,\n            \"physical_width\": 1760,\n            \"printable_height\": 2420,\n            \"printable_width\": 1680\n        },\n        \"C5 信封\": {\n            \"paper_id\": 28,\n            \"physical_height\": 2290,\n            \"physical_width\": 1620,\n            \"printable_height\": 2210,\n            \"printable_width\": 1520\n        },\n        \"DL 信封\": {\n            \"paper_id\": 27,\n            \"physical_height\": 2200,\n            \"physical_width\": 1100,\n            \"printable_height\": 2120,\n            \"printable_width\": 980\n        },\n        \"10 号信封\": {\n            \"paper_id\": 20,\n            \"physical_height\": 2413,\n            \"physical_width\": 1046,\n            \"printable_height\": 2330,\n            \"printable_width\": 920\n        },\n        \"A5\": {\n            \"paper_id\": 11,\n            \"physical_height\": 2100,\n            \"physical_width\": 1480,\n            \"printable_height\": 2020,\n            \"printable_width\": 1350\n        },\n        \"A4\": {\n            \"paper_id\": 9,\n            \"physical_height\": 2970,\n            \"physical_width\": 2100,\n            \"printable_height\": 2890,\n            \"printable_width\": 2000\n        },\n        \"Executive\": {\n            \"paper_id\": 7,\n            \"physical_height\": 2667,\n            \"physical_width\": 1842,\n            \"printable_height\": 2580,\n            \"printable_width\": 1730\n        },\n        \"Legal\": {\n            \"paper_id\": 5,\n            \"physical_height\": 3556,\n            \"physical_width\": 2159,\n            \"printable_height\": 3470,\n            \"printable_width\": 2060\n        },\n        \"Letter\": {\n            \"paper_id\": 1,\n            \"physical_height\": 2794,\n            \"physical_width\": 2159,\n            \"printable_height\": 2710,\n            \"printable_width\": 2060\n        }\n    }\n}"}],"_postman_id":"490b68e5-7448-42c3-865f-3b53a0e9e9ee"},{"name":"清空排队中的任务","id":"bdf8bf10-4e0b-4ca6-beb4-3191dcb2d40a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"ApiKey","value":"{{ApiKey}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"deviceId\": \"{{deviceId}}\",\n    \"deviceKey\": \"{{deviceKey}}\",\n    \"devicePort\": {{devicePort}}\n}","options":{"raw":{"language":"json"}}},"url":"https://cloud.liankenet.com/api/print/flush_jobs","description":"<p>调用该接口后，将会清除待打印队列，正在打印的任务不会取消</p>\n","urlObject":{"path":["api","print","flush_jobs"],"host":["https://cloud.liankenet.com"],"query":[],"variable":[]}},"response":[{"id":"fa5a900b-b0dd-419f-88e5-67c0011ded8b","name":"清空排队中的任务-任务结果","originalRequest":{"method":"POST","header":[{"key":"ApiKey","value":"{{ApiKey}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"deviceId\": \"{{deviceId}}\",\n    \"deviceKey\": \"{{deviceKey}}\",\n    \"devicePort\": {{devicePort}}\n}","options":{"raw":{"language":"json"}}},"url":"https://https://cloud.liankenet.com/api/print/flush_jobs"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Wed, 22 Nov 2023 09:05:26 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"52"},{"key":"Connection","value":"keep-alive"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Private-Network","value":"true"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, OPTIONS, DELETE"},{"key":"Access-Control-Allow-Headers","value":"DNT,X-Mx-ReqToken,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Authorization,ApiKey"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"data\": {\n        \"queue_num\": 3\n    },\n    \"msg\": \"success\"\n}"}],"_postman_id":"bdf8bf10-4e0b-4ca6-beb4-3191dcb2d40a"}],"id":"53496ac5-d17d-4d93-a9f7-28c3d1428691","event":[{"listen":"prerequest","script":{"id":"de56a5ed-1e8b-4155-a54e-866751bdb403","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"d8d34c17-3c2d-4494-ada9-b843db0b26a3","type":"text/javascript","exec":[""]}}],"_postman_id":"53496ac5-d17d-4d93-a9f7-28c3d1428691","description":""}],"event":[{"listen":"prerequest","script":{"id":"6a0b4e11-78b8-47b4-af1e-07cceec50bab","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"7bd55be6-7bca-434a-839f-3cee2a2c2c26","type":"text/javascript","exec":[""]}}],"variable":[{"key":"url","value":"https://cloud.liankenet.com"}]}