Good Life Developers
Home
User Support
Developers API
Search…
Developers API
Developer App
API
Devices List
Devices State
Devices Command
Powered By
GitBook
Devices State
Get state of user devices including shared devices state.
This API let your app get state of user devices. This also includes state of devices that are shared with user.
post
https://api.goodlife.pk
/v1/devices/state
Devices State API
Request Format
Send devices in JSON body as following format
1
{
2
"devices"
:
[
3
"deviceId-1"
,
4
"deviceId-2"
5
]
6
}
Copied!
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
1
{
2
"error"
:
0
,
3
"devices"
:
[
4
{
5
"deviceId-1"
:
{
6
"online"
:
true
,
7
"on"
:
true
8
}
9
},
10
{
11
"deviceId-2"
:
{
12
"online"
:
true
,
13
"on"
:
false
14
}
15
}
16
]
17
}
Copied!
API - Previous
Devices List
Next - API
Devices Command
Last modified
1yr ago
Copy link
Contents
post
Devices State API
Request Format
Response Format