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

百度小程序跟做网站1688网站

百度小程序跟做网站,1688网站,浙江公司响应式网站建设推荐,女生做网站编辑怎么样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.hrbkazy.com/news/31189.html

相关文章:

  • 网站容量百度知道个人中心
  • ppt电子商务网站建设肇庆网站搜索排名
  • 深圳宝安p2p网站系统的建设会员卡营销策划方案
  • html制作企业宣传网站外链购买平台
  • 公司网站怎么登录网络营销的四种模式
  • 程序员培训机构课程seo搜索引擎优化包邮
  • 焦作网站建设哪家专业seo网站优化师
  • 冀州做网站的公司抖音推广渠道有哪些
  • 做网站用什么格式的图片网络营销推广网站
  • 网上开店指南seo推广排名
  • 辽宁智能建站系统价格谷歌官方网站首页
  • 天台网站建设奶茶网络营销策划方案
  • 上海宝山做网站公司排名营销到底是干嘛的
  • 织梦响应式网站如何发布视频赚钱
  • 自己做的网站安全吗检测网站是否安全
  • 网站建设小公司生存免费自己建网页
  • 怎样在工商局网站上做网登seo网站排名
  • 网站使用培训方案百度助手
  • 网站建设相关ppt马鞍山seo
  • 网站架构策划书百度账号找回
  • 作者联合开发的小说网站叫什么实时军事热点
  • 南充能够建设网站的公司有org域名注册
  • 企业网络宣传推广方案seo服务公司上海
  • 买域名建网站价格培训心得体会感悟
  • 企业网站建设的要素广州网站建设工作室
  • 做淘宝客网站需要多大带宽如何建立免费公司网站
  • 蒲公英路由做网站成都网站建设
  • 网站专栏怎么做漂亮搜狗关键词优化软件
  • 网格搜索优化青岛百度快速优化排名
  • 玩弄已婚熟妇做爰网站seo优化前景