Get Category List

Last Updated on : 2023-06-15 04:48:49

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.