@xesam/cloud-vendor-feie
v0.0.4
Published
cloud printer vendor/feie
Downloads
7
Readme
外卖云打印机——飞鹅
使用方式
安装
node 环境:
npm install @xesam/cloud-node
npm install @xesam/cloud-vender-feie
小程序环境:
npm install @xesam/cloud-mini
npm install @xesam/cloud-vender-feie
代码调用:
const CloudCore = require('@xesam/cloud-core');
const NodeCloud = require('@xesam/cloud-node');
const CloudApi = require('@xesam/cloud-vender-feie');
const cloudApi = new CloudApi(new CloudCore.CloudAuth('xxx id','xxx secret' ), new NodeCloud());
const device = new CloudCore.Device()
.sn(authJson.p_sn)
.key(authJson.p_key)
.name('device name');
cloudApi.addDevice([device]).then(JSON.stringify).then(console.log).catch(console.error);
ChangeLogs
0.0.2
- 接口命名方式修改;