当前位置: 首页 > news >正文

网站建设能wordpress 扩展

网站建设能,wordpress 扩展,泗泾做网站公司,手机百度收录网站吗ty.device.getShareDeviceInfo 获取共享设备信息 需引入DeviceKit,且在>2.2.0版本才可使用 请求参数 Object object 属性类型默认值必填说明deviceIdstring是deviceId 设备 idcompletefunction否接口调用结束的回调函数(调用成功、失败都会执行&am…

ty.device.getShareDeviceInfo

获取共享设备信息

需引入DeviceKit,且在>=2.2.0版本才可使用

请求参数

Object object

属性类型默认值必填说明
deviceIdstringdeviceId 设备 id
completefunction接口调用结束的回调函数(调用成功、失败都会执行)
successfunction接口调用成功的回调函数
failfunction接口调用失败的回调函数

返回结果

  • success
属性类型说明
namestring姓名
mobilestring手机号
emailstring邮件
  • fail
属性类型说明
errorMsgstring插件错误信息
errorCodestring错误码
innerErrorobject插件外部依赖错误信息 {errorMsg: string, errorCode: string }

请求示例

ty.device.getShareDeviceInfo({deviceId: 'vdevo165649418612782',
}).then((res) => {console.log(res);}).catch((error) => {console.log(error);});

返回示例

{"name": "设备详情小程序","email": "cn500**il.fr"
}

ty.device.getSupportedThirdPartyServices

获取设备支持的三方服务

需引入DeviceKit,且在>=2.2.0版本才可使用

请求参数

Object object

属性类型默认值必填说明
deviceIdstringdeviceId 设备 id
completefunction接口调用结束的回调函数(调用成功、失败都会执行)
successfunction接口调用成功的回调函数
failfunction接口调用失败的回调函数

返回结果

  • success
属性类型说明
servicesArray<ThirdPartyService>服务列表
  • fail
属性类型说明
errorMsgstring插件错误信息
errorCodestring错误码
innerErrorobject插件外部依赖错误信息 {errorMsg: string, errorCode: string }

请求示例

ty.device.getSupportedThirdPartyServices({deviceId: '64710761ecfabcaaf553',
}).then((res) => {console.log(res);}).catch((error) => {console.log(error);});

返回示例

{"services": [{"attributeKey": "DUEROS_SUPPORT","attributeSign": 19,"serviceId": 9,"iconUrl": "https://images.tuyacn.com/app/thirdparty/du@3x.png","originJson": {"id": 9,"attributeSign": 19,"url": "https://app-third.tuyacn.com/thirdCode?platform=dueros","iconV2": "https://images.tuyacn.com/app/thirdparty/du@3x.png","iconMini": "https://images.tuyacn.comnull","remark": "小度","iconShow": "0","group": "1","icon": "https://images.tuyacn.com/app/thirdparty/du@3x.png","nameKey": "personal_speech_service_dueros","newRemark": "小度","attributeKey": "DUEROS_SUPPORT"},"name": "小度","url": "https://app-third.tuyacn.com/thirdCode?platform=dueros"}]
}

👉 立即开发。 

ty.device.isDeviceSupportOfflineReminder

设备是否支持离线提醒

需引入DeviceKit,且在>=2.2.0版本才可使用

请求参数

Object object

属性类型默认值必填说明
deviceIdstringdeviceId 设备 id
completefunction接口调用结束的回调函数(调用成功、失败都会执行)
successfunction接口调用成功的回调函数
failfunction接口调用失败的回调函数

返回结果

  • success
属性类型说明
isSupportbooleansupport 是否支持设备离线提醒
  • fail
属性类型说明
errorMsgstring插件错误信息
errorCodestring错误码
innerErrorobject插件外部依赖错误信息 {errorMsg: string, errorCode: string }

请求示例

ty.device.isDeviceSupportOfflineReminder({deviceId: 'vdevo165649418612782',
}).then((res) => {console.log(res);}).catch((error) => {console.log(error);});

返回示例

  {isSupport: true}

ty.device.syncDeviceInfo

同步设备信息

需引入DeviceKit,且在>=2.1.6版本才可使用

请求参数

Object object

属性类型默认值必填说明
deviceIdstring设备 id
completefunction接口调用结束的回调函数(调用成功、失败都会执行)
successfunction接口调用成功的回调函数
failfunction接口调用失败的回调函数

返回结果

  • success

  • fail
属性类型说明
errorMsgstring插件错误信息
errorCodestring错误码
innerErrorobject插件外部依赖错误信息 {errorMsg: string, errorCode: string }

请求示例

ty.device.syncDeviceInfo({deviceId: '64710761ecfabcaaf553'
}).then((res) => {console.log(res);}).catch((error) => {console.log(error);});

👉 立即开发。 

ty.device.renameDeviceName

修改设备名称

需引入DeviceKit,且在>=2.4.0版本才可使用

请求参数

Object object

属性类型默认值必填说明
deviceIdstringdeviceId 设备 id
namestringname 设备名称
completefunction接口调用结束的回调函数(调用成功、失败都会执行)
successfunction接口调用成功的回调函数
failfunction接口调用失败的回调函数

返回结果

  • success

  • fail
属性类型说明
errorMsgstring插件错误信息
errorCodestring错误码
innerErrorobject插件外部依赖错误信息 {errorMsg: string, errorCode: string }

请求示例

ty.device.renameDeviceName({deviceId: '64710761ecfabcaaf553',name: 'device-f553',
}).then((res) => {console.log(res);}).catch((error) => {console.log(error);});

ty.device.toggleDeviceOfflineReminder

离线提醒开关

需引入DeviceKit,且在>=2.2.0版本才可使用

请求参数

Object object

属性类型默认值必填说明
deviceIdstringdeviceId 设备 id
statenumberstate 设备离线提醒的开关状态 0:关 1:开
completefunction接口调用结束的回调函数(调用成功、失败都会执行)
successfunction接口调用成功的回调函数
failfunction接口调用失败的回调函数

返回结果

  • success

  • fail
属性类型说明
errorMsgstring插件错误信息
errorCodestring错误码
innerErrorobject插件外部依赖错误信息 {errorMsg: string, errorCode: string }

请求示例

ty.device.toggleDeviceOfflineReminder({deviceId: 'vdevo165649418612782',state: 1, 
}).then((res) => {console.log(res);}).catch((error) => {console.log(error);});

👉 立即开发。 

http://www.yayakq.cn/news/836993/

相关文章:

  • 网站搭建心得体会我要自学网app免费版
  • 宁波建设信息港网站在家做网站设计挣钱吗
  • 一些做设计素材的网站保定seo排名外包
  • 北京网站维护工程咨询公司
  • php做网站安装做旅游网站目的和意义
  • 建站公司排名logo设计在线生成免费无水印
  • 网站 广州花店网站设计
  • 仿中国加盟网站源码网站建设年度汇报
  • 云霄网站建设福州网站建设价格
  • 网站页面头部设计说明如何建立一个网站来卖东西
  • 商会联盟网站建设方案微信小程序怎么收费
  • 网站全网建设 莱芜网站建设维护费会计科目
  • 选择大连网站建设木渎建设局网站
  • 淘宝自己建的网站做类似于58同城的网站
  • 网站被别人域名绑定怎么做装修网站平台
  • 昆明公司网站开发通信网络维护是做什么的
  • 网站建设哪个公司wordpress手机显示不出主题
  • 广元建设网站icp备案网站接入信息
  • 织梦cms做电影网站广州企业年报网上申报入口
  • 网站首页策划怎么做wordpress 无法处理图像.请返回重试.
  • 招远网站开发微信小程序开发和网站开发的区别
  • 百度推广整体优化网站西安seo代理计费
  • 网站的建设需要多少钱网页设计网站规划
  • 哈尔滨专业优化网站个人基于php的微网站开发
  • 个人网站免备案吗网站 备案 拍照
  • 江苏网站建设费用建网站和软件需要什么
  • 优化志愿网站外贸网站建设和seo
  • 网站开发 定制 合同 模板江门小程序制作
  • 国家工程建设信息网站团建拓展网站建设需求分析
  • 邢台本地信息网天津seo网络营销