Devices Command
Send command to user's devices including shared devices.
This API let your app send command to user's devices. Your app can also send command to devices that are shared with user.
Devices Command API
POST
https://api.goodlife.pk/v1/devices/command
Headers
Name | Type | Description |
---|---|---|
Content-Type | string | application/json |
appid | string | This is App ID you received after your app is approved. |
x-access-key | string | This is API Key you received from the user. |
Request Format
Send devices and command in JSON body as following format
Response Format
Depends upon your request, you will receive API response in JSON format. If there is error then response will be in following format
{"error":1,"msg":"Error detail"}
If there is no error then response will be like following
Last updated