Get Category List

Last Updated on : 2024-06-29 01:10:52download

Get the list of categories of all products.

API address

GET: /v1.0/iot-03/device-categories

Return parameter

Parameter nameTypeDescription
resultListThe returned result.

Description of result

Parameter nameTypeDescription
codeStringThe category code.
nameStringThe category name.

Request example

GET: /v1.0/iot-03/device-categories

Return example

{
    "result": [
        {
            "code": "cz",
            "name": "Socket"
        },
        {
            "code": "kg",
            "name": "Switch"
        }
    ],
    "t": 1636094747180,
    "success": true
}

Error code

For more information, see error code.