Getting Started
Official Site
Getting Started
Official Site
  • Document description
  • Read before you start

  • Light application development guide

  • Mobile application development guide

  • Cloud live development guide

  • Desktop application development guide

  • Third party development guide

  • Message push development guide

  • IoT things data model

    • IoT things data model
    • getProductModel: Obtain things data model of product
    • iotDeviceControl: Call the Service method in the things data model
    • getIotDeviceProperties: Obtain the property value specified in the things data model
    • setIotDeviceProperties: Set the property value specified in the things data model
  • HTTP interface

  • Reference documents

On this page
getIotDeviceProperties: Obtain the property value specified in the things data model
Function details
Request address
Incoming parameter description
Sample input
Return data field description
Sample output

Get IoT Device Properties for Imou Cameras - Imou Open Platform

getIotDeviceProperties: Obtain the property value specified in the things data model

Function details

Obtain the property value specified in the things data model

Request address

https://openapi-[DataCenter].easy4ip.com/openapi/getIotDeviceProperties

Incoming parameter description

Parameter nameParameter typeRequired or notDefault valueLegal valueParameter description
tokenStringyesAdministrator or sub-account accessToken
productIdStringyesRefers to the productId returned by the listDeviceDetailsByIds and listDeviceDetailsByPage interfaces. If the productId field returned by the list has a value, it indicates that the device is an IoT device and supports calling IoT things data model Interfaceunique id of product
deviceIdStringyesDevice serial number
subDeviceIdStringRefers to the subDeviceId returned by the listDeviceDetailsByIds and listDeviceDetailsByPage interfaces. If the productId field returned by the list has a value, it indicates that the device is an IoT device and supports calling IoT things data model InterfaceSub device serial number, mandatory when querying the properties of sub devices
properties[String]yesView the properties supported by the device through getProductModelThe set of ref values for properties in the things data model

Sample input

{
    "system":{
        "ver":"1.0",
        "appId":"lcdxxxxxxxxx",
        "sign":"58386675a58cf164d64c1944fd33a516",
        "time":1603366491,
        "nonce":"7aed0429-1a92-4a51-b8b0-cfebb60dcc85"
    },
    "id":"a25f887f-33f0-44ef-9ed3-f60f83193482",
    "params":{
        "token":"At_00000xxxxxxxxxxxxxxxxxx",
        "productId": "W8ql32289",
        "deviceId": "TESTQWERXXXX",
        "properties": ["3301","3302"]
    }
}

Return data field description

Field name Field type Field description
productId String nique id of product
deviceId String Device serial number
name String Device name
properties [array] The set of values for properties
status String device status,online/offline

Sample output

{
    "result": {
        "msg": "Operation is successful.",
        "code": "0",
        "data": {
            "productId": "W8ql32289",
            "deviceId": "TESTQWERXXXX",
            "name": "RASD",
            "properties": {
                "3301": 1,
                "3302": 2
            },
            "status": "online"
        }
    },
    "id": "a25f887f-33f0-44ef-9ed3-f60f83193482"
}
iotDeviceControl: Call the Service method in the things data model
setIotDeviceProperties: Set the property value specified in the things data model