public class WxMpDeviceServiceImpl extends Object implements WxMpDeviceService
构造器和说明 |
---|
WxMpDeviceServiceImpl() |
限定符和类型 | 方法和说明 |
---|---|
WxDeviceAuthorizeResult |
authorize(WxDeviceAuthorize wxDeviceAuthorize)
将device id及其属性信息提交公众平台进行授权
详情请见:http://iot.weixin.qq.com/wiki/new/index.html?
|
WxDeviceBindResult |
bind(WxDeviceBind wxDeviceBind)
第三方后台绑定成功后,通知公众平台
详情请见:http://iot.weixin.qq.com/wiki/new/index.html/page=3-4-7
|
WxDeviceBindResult |
compelBind(WxDeviceBind wxDeviceBind)
强制绑定用户和设备
详情请见:http://iot.weixin.qq.com/wiki/new/index.html?
|
WxDeviceBindResult |
compelUnbind(WxDeviceBind wxDeviceBind)
强制解绑用户和设备
详情请见:http://iot.weixin.qq.com/wiki/new/index.html?
|
WxDeviceBindDeviceResult |
getBindDevice(String openId)
通过openid获取用户在当前devicetype下绑定的deviceid列表`
详情请见:http://iot.weixin.qq.com/wiki/new/index.html?
|
WxDeviceOpenIdResult |
getOpenId(String deviceType,
String deviceId)
通过device type和device id 获取设备主人的openid
详情请见:http://iot.weixin.qq.com/wiki/new/index.html?
|
WxDeviceQrCodeResult |
getQrCode(String productId)
获取一组新的deviceid和设备二维码
详情请见:http://iot.weixin.qq.com/wiki/new/index.html?
|
TransMsgResp |
transMsg(WxDeviceMsg msg)
主动发送消息给设备
详情请见:http://iot.weixin.qq.com/wiki/new/index.html?
|
WxDeviceBindResult |
unbind(WxDeviceBind wxDeviceBind)
第三方确认用户和设备的解绑操作
详情请见:http://iot.weixin.qq.com/wiki/new/index.html/page=3-4-7
|
public TransMsgResp transMsg(WxDeviceMsg msg) throws WxErrorException
WxMpDeviceService
主动发送消息给设备 详情请见:http://iot.weixin.qq.com/wiki/new/index.html?page=3-4-3
transMsg
在接口中 WxMpDeviceService
msg
- the msgWxErrorException
- the wx error exceptionpublic WxDeviceQrCodeResult getQrCode(String productId) throws WxErrorException
WxMpDeviceService
获取一组新的deviceid和设备二维码 详情请见:http://iot.weixin.qq.com/wiki/new/index.html?page=3-4-6
getQrCode
在接口中 WxMpDeviceService
productId
- 产品idWxErrorException
- the wx error exceptionpublic WxDeviceAuthorizeResult authorize(WxDeviceAuthorize wxDeviceAuthorize) throws WxErrorException
WxMpDeviceService
将device id及其属性信息提交公众平台进行授权 详情请见:http://iot.weixin.qq.com/wiki/new/index.html?page=3-4-6
authorize
在接口中 WxMpDeviceService
wxDeviceAuthorize
- 授权请求对象WxErrorException
- the wx error exceptionpublic WxDeviceBindResult bind(WxDeviceBind wxDeviceBind) throws WxErrorException
WxMpDeviceService
第三方后台绑定成功后,通知公众平台 详情请见:http://iot.weixin.qq.com/wiki/new/index.html/page=3-4-7
bind
在接口中 WxMpDeviceService
wxDeviceBind
- 绑定请求对象WxErrorException
- the wx error exceptionpublic WxDeviceBindResult compelBind(WxDeviceBind wxDeviceBind) throws WxErrorException
WxMpDeviceService
强制绑定用户和设备 详情请见:http://iot.weixin.qq.com/wiki/new/index.html?page=3-4-7
compelBind
在接口中 WxMpDeviceService
wxDeviceBind
- 强制绑定请求对象WxErrorException
- the wx error exceptionpublic WxDeviceBindResult unbind(WxDeviceBind wxDeviceBind) throws WxErrorException
WxMpDeviceService
第三方确认用户和设备的解绑操作 详情请见:http://iot.weixin.qq.com/wiki/new/index.html/page=3-4-7
unbind
在接口中 WxMpDeviceService
wxDeviceBind
- 绑定请求对象WxErrorException
- the wx error exceptionpublic WxDeviceBindResult compelUnbind(WxDeviceBind wxDeviceBind) throws WxErrorException
WxMpDeviceService
强制解绑用户和设备 详情请见:http://iot.weixin.qq.com/wiki/new/index.html?page=3-4-7
compelUnbind
在接口中 WxMpDeviceService
wxDeviceBind
- 强制解绑请求对象WxErrorException
- the wx error exceptionpublic WxDeviceOpenIdResult getOpenId(String deviceType, String deviceId) throws WxErrorException
WxMpDeviceService
通过device type和device id 获取设备主人的openid 详情请见:http://iot.weixin.qq.com/wiki/new/index.html?page=3-4-11
getOpenId
在接口中 WxMpDeviceService
deviceType
- 设备类型,目前为"公众账号原始ID"deviceId
- 设备IDWxErrorException
- the wx error exceptionpublic WxDeviceBindDeviceResult getBindDevice(String openId) throws WxErrorException
WxMpDeviceService
通过openid获取用户在当前devicetype下绑定的deviceid列表` 详情请见:http://iot.weixin.qq.com/wiki/new/index.html?page=3-4-12
getBindDevice
在接口中 WxMpDeviceService
openId
- 要查询的用户的openidWxErrorException
- the wx error exceptionCopyright © 2024. All rights reserved.