Smart commands
The commands inside a scene.
Every call needs the project’s API key in x-header-apikey. See Authentication. Errors use the codes in Error codes.
Get smart CMDs by userId
Section titled “Get smart CMDs by userId”GET https://openapi.rogo.com.vn/api/v2.0/iot-core/smartcmd/{userId}smartId = undefined then return all smart CMDs
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
userId |
path | string | Yes | |
smartId |
query | string | No | Optional smart ID to filter commands by smart |
curl -X GET "https://openapi.rogo.com.vn/api/v2.0/iot-core/smartcmd/<userId>" \ -H "x-header-apikey: $API_KEY"| Status | Meaning |
|---|---|
| 200 |
Example answer
[ { "uuid": "string", "smartId": "string", "targetId": "string", "target": 0, "filter": 0, "ownerId": "string", "linkId": "string", "type": 0, "linkType": 0, "zone": 0, "cfm": 0, "cmds": {}, "extra": [ "string" ], "userId": "string" }]Get smart CMD
Section titled “Get smart CMD”GET https://openapi.rogo.com.vn/api/v2.0/iot-core/smartcmd/{userId}/{uuid}| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
uuid |
path | string | Yes | |
userId |
path | string | Yes |
curl -X GET "https://openapi.rogo.com.vn/api/v2.0/iot-core/smartcmd/<userId>/<uuid>" \ -H "x-header-apikey: $API_KEY"| Status | Meaning |
|---|---|
| 200 |
Example answer
{ "uuid": "string", "smartId": "string", "targetId": "string", "target": 0, "filter": 0, "ownerId": "string", "linkId": "string", "type": 0, "linkType": 0, "zone": 0, "cfm": 0, "cmds": {}, "extra": [ "string" ], "userId": "string"}