English
English
简体中文
Contact Us
Register
Log In
layoutIndex

Get the instruction set of the category

Last Updated on : 2022-04-29 05:36:43download

Get the instruction set of the category by the product category code.

API address

GET: /v1.0/iot-03/categories/{category}/functions

Request parameter

Parameter nameTypeINRequiredDescription
categoryStringuritrueProduct category

Return parameter

Parameter nameTypeDescription
resultFunctionRes

Description of result

Parameter nameTypeDescription
categoryStringProduct category
functionsListInstruction set

Description of functions

Parameter nameTypeDescription
nameStringInstruction name
descStringDescription
codeStringInstruction
typeStringInstruction type
valuesStringThe input parameter range of the instruction

Request example

GET: /v1.0/iot-03/categories/kg/functions

Return example

{
    "result": {
        "functions": [
            {
                "code": "switch",
                "values": "{}",
                "type": "Boolean",
                "name": "Switch",
                "desc": "Master switch"
            }
        ],
        "category": "kg"
    },
    "t": 1571293457435,
    "success": true
}

Error code

For more information, see error code.