wechat-iot
微信公共平台独立设备管理Node库 FORK FROM node-webot/wechat(https://github.com/node-webot/wechat)
功能列表
Installation
$ npm install wechat-iot
Use with Connect/Express
var wechat = ;var config = token: 'token' appid: 'appid' encodingAESKey: 'encodinAESKey'; app;app;
备注:token在微信平台的开发者中心申请
回复设备消息
模块可以对类型为device_text或device_event的消息作出特定格式的响应.
var wechat = ;var config = token: 'token' appid: 'appid' encodingAESKey: 'encodinAESKey'; app;app;
目前微信公共平台能接收到1种内容:事件。
app;
更简化的API设计
示例如下:
app;
该接口从0.3.x提供。
License
The MIT license.