[关闭]
@soszrg 2017-03-30T07:30:26.000000Z 字数 1562 阅读 334

IPUser接口文档


ErrorCode说明

Token说明

  1. Authorization: token 07ae838c1...

获取产品名字list (Token)

GET /v3/product/names/

请求参数

返回值

  1. {
  2. "meta":{
  3. "message":"产品名列表",
  4. "code":0
  5. },
  6. "data":[
  7. {
  8. "pname":"zrgtest032802",
  9. "productid":"f5b48930135911e7a554fa163e876164"
  10. },
  11. {
  12. "pname":"zrgtest032801",
  13. "productid":"b81f38f6135711e7a554fa163e876164"
  14. }
  15. ]
  16. }

错误码

错误代码 错误说明
29040 内部错误

创建设备(Token)

POST /v3/product/device/

请求参数

参数 类型 是否必须 说明
productid string 产品ID
dsn string 设备串号或者MAC地址
othersn string 厂家自定义串号
alias string 设备别名

返回值

  1. {
  2. "meta":{
  3. "message":"成功添加设备",
  4. "code":0
  5. },
  6. "data":{
  7. "status":true,
  8. "isonline":false,
  9. "product":{
  10. "producttype":1,
  11. "pic":"http://mxchip-fog.oss-cn-beijing.aliyuncs.com/product/productdefault.jpg",
  12. "secretKey":"",
  13. "ipstaticfiles":null,
  14. "owner":3,
  15. "audittime":null,
  16. "gatewaytype":0,
  17. "wx_product_id":"",
  18. "submittime":"2017-03-28T09:42:07.972539",
  19. "auditmark":3,
  20. "isdeleted":false,
  21. "auditor":null,
  22. "status":0,
  23. "description":"",
  24. "wx_flag":false,
  25. "brand":"zrgtest032801",
  26. "link_mode":"0",
  27. "checkvalidity":false,
  28. "pname":"zrgtest032801",
  29. "modifytime":null,
  30. "abilitytype":1,
  31. "access_token_url":"",
  32. "productid":"b81f38f6135711e7a554fa163e876164",
  33. "modifier":null,
  34. "url":"",
  35. "pubtime":"2017-03-28T09:42:07.972505",
  36. "submitter":3,
  37. "attributes":{
  38. },
  39. "model":"zrgtest032801",
  40. "identifier":0
  41. },
  42. "isactivated":false,
  43. "wx_device_id":"",
  44. "groupid":"",
  45. "dsn":"zrgtest033001",
  46. "alias":null,
  47. "onlinetimes":0,
  48. "last_login":null,
  49. "deviceid":"a769800014fd11e78307dc536017523b",
  50. "isrecorded":true,
  51. "qrcode":"",
  52. "wechat_flag":false,
  53. "createtime":"2017-03-30T12:02:16.191000",
  54. "isdeleted":false
  55. }
  56. }
添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注