0.0.4 • Published 1 year ago

@xesam/cloud-vendor-spyun v0.0.4

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

外卖云打印机——商鹏云

使用方式

安装

node 环境:

npm install @xesam/cloud-node
npm install @xesam/cloud-vender-spyun

小程序环境:

npm install @xesam/cloud-mini
npm install @xesam/cloud-vender-spyun

代码调用:

const CloudCore = require('@xesam/cloud-core');
const NodeCloud = require('@xesam/cloud-node');
const CloudApi = require('@xesam/cloud-vender-spyun');

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

  1. 接口命名方式修改;
0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

2 years ago