Recently a lot of small partners are doing the mall project, then to share a koa.js platform based on node. JS Web Development Framework to connect the code of the interface of the easy-link cloud printer for everyone to learn.
Koahub-yilianyun
Yi Yin-yun Printer Interface
Koahub-yilianyun Easy-Connection cloud Printer node interface
Installation
$ NPM Install Koahub-yilianyun
Use with Co-request
var printer = require (' Koahub-yilianyun ');
var result = Yield Printer ({
"Partner": 914,//User ID (acquired in Central Administration system integration)
"Apikey": "3785b31b2c84f3c47e51a6c4481f8a5fc2eea72a",//apikey (acquired in Central Administration system integration)
"Machine_code": "3400453726",//Printer terminal number
"Msign": "Gn5p5zk585b6",//Printer terminal key
"Time": parseint (New Date (). GetTime ()/1000),//current timestamp (server for authentication timeout)
"Content": ' 2222 '//required to transfer printed content data
});
Koahub.js--node. JS Web Rapid development framework based on Koa.js platform
Code Source: http://js.koahub.com
Code for koahub.js connected printers based on the KOA Platform node. JS Development