开发者社区> 问答> 正文

怎么查询设备详情?



QueryDeviceInfo



描述


查询设备详情。

请求参数

名称类型是否必须描述
ActionString操作接口名称,取值:QueryDeviceInfo
AppKeyLongAppKey信息
DeviceIdString设备在推送系统中的唯一标识(一次只能查询一个)


响应参数

名称类型描述
DeviceInfo复杂对象DeviceInfoType设备详情类型


错误码



示例

  1. [backcolor=transparent]http[backcolor=transparent]:[backcolor=transparent]//cloudpush.aliyuncs.com/?Action=QueryDeviceInfo
  2. [backcolor=transparent]&[backcolor=transparent]AppKey[backcolor=transparent]=[backcolor=transparent]23419851
  3. [backcolor=transparent]&[backcolor=transparent]DeviceId[backcolor=transparent]=[backcolor=transparent]a64ae296f3b04a58a05b30c95f14064e
  4. [backcolor=transparent]&<公共请求参数>


返回示例



XML格式

  1. [backcolor=transparent]<?[backcolor=transparent]xml version[backcolor=transparent]=[backcolor=transparent]'1.0'[backcolor=transparent] encoding[backcolor=transparent]=[backcolor=transparent]'UTF-8'[backcolor=transparent]?>
  2. [backcolor=transparent]<QueryDeviceInfoResponse>
  3. [backcolor=transparent]    [backcolor=transparent]<RequestId>[backcolor=transparent]9998B3CC-ED9E-4CB3-A8FB-DCC61296BFBC[backcolor=transparent]</RequestId>
  4. [backcolor=transparent]    [backcolor=transparent]<DeviceInfo>
  5. [backcolor=transparent]      [backcolor=transparent]<BoundAccount>[backcolor=transparent]test@aliyun.com[backcolor=transparent]</BoundAccount>
  6. [backcolor=transparent]      [backcolor=transparent]<BoundTag>[backcolor=transparent]test_tag,test_tag2[backcolor=transparent]</BoundTag>
  7. [backcolor=transparent]      [backcolor=transparent]<BoundAlias>[backcolor=transparent]test_alias,test_alias2[backcolor=transparent]</BoundAlias>
  8. [backcolor=transparent]      [backcolor=transparent]<DeviceId>[backcolor=transparent]a64ae296f3b04a58a05b30c95f14064e[backcolor=transparent]</DeviceId>
  9. [backcolor=transparent]      [backcolor=transparent]<DeviceToken></DeviceToken>
  10. [backcolor=transparent]      [backcolor=transparent]<DeviceType>[backcolor=transparent]2[backcolor=transparent]</DeviceType>
  11. [backcolor=transparent]      [backcolor=transparent]<IsOnline>[backcolor=transparent]false[backcolor=transparent]</IsOnline>
  12. [backcolor=transparent]      [backcolor=transparent]<LastOnlineTime>[backcolor=transparent]1469534087717[backcolor=transparent]</LastOnlineTime>
  13. [backcolor=transparent]    [backcolor=transparent]</DeviceInfo>
  14. [backcolor=transparent]</QueryDeviceInfoResponse>


JSON格式

  1. [backcolor=transparent]{
  2. [backcolor=transparent]  [backcolor=transparent]"RequestId"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]"6EEF262B-EA7D-41DC-89B9-20F3D1E28194"[backcolor=transparent],
  3. [backcolor=transparent]  [backcolor=transparent]"DeviceInfo"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]{
  4. [backcolor=transparent]    [backcolor=transparent]"BoundAccount"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]"test@aliyun.com"[backcolor=transparent],
  5. [backcolor=transparent]    [backcolor=transparent]"BoundTag"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]"test_tag,test_tag2"[backcolor=transparent],
  6. [backcolor=transparent]    [backcolor=transparent]"BoundAlias"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]"test_alias,test_alias2"[backcolor=transparent],
  7. [backcolor=transparent]    [backcolor=transparent]"DeviceId"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]"a64ae296f3b04a58a05b30c95f14064e"[backcolor=transparent],
  8. [backcolor=transparent]    [backcolor=transparent]"DeviceToken"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]""[backcolor=transparent],
  9. [backcolor=transparent]    [backcolor=transparent]"DeviceType"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]2[backcolor=transparent],
  10. [backcolor=transparent]    [backcolor=transparent]"IsOnline"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]false[backcolor=transparent],
  11. [backcolor=transparent]    [backcolor=transparent]"LastOnlineTime"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]"1469534087717"[backcolor=transparent],
  12. [backcolor=transparent]  [backcolor=transparent]}
  13. [backcolor=transparent]}

展开
收起
猫饭先生 2017-10-23 10:35:32 1406 0
0 条回答
写回答
取消 提交回答
问答分类:
问答地址:
问答排行榜
最热
最新

相关电子书

更多
内容安全检测与管控 立即下载
低代码开发师(初级)实战教程 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载