Last Updated on : 2023-10-18 10:11:13download
Query the list of rooms under a specified home.
GET: /v1.0/homes/{home_id}/rooms
Parameter name | Type | IN | Required | Description |
---|---|---|---|---|
home_id | Long | uri | true | The ID of a home. |
Parameter name | Type | Description |
---|---|---|
result | HomeAndRoomsRes | The list of rooms. |
Description of result
Parameter name | Type | Description |
---|---|---|
home_id | Long | The ID of a home. |
name | String | The name of a home. |
lon | Double | The longitude of a home. |
lat | Double | The latitude of a home. |
geo_name | String | The detailed address. |
rooms | List | The list of rooms. |
Description of rooms
Parameter name | Type | Description |
---|---|---|
room_id | Long | The ID of a room. |
name | String | The name of a room. |
GET: GET /v1.0/homes/337403/rooms
{
"result": {
"rooms": [
{
"room_id": 587609,
"name": "Living Room"
},
{
"room_id": 587610,
"name": "Master Bedroom"
},
{
"room_id": 587611,
"name": "Second Bedroom"
}
],
"lon": 120.0640923396687,
"name": "Test Home",
"home_id": 337403,
"lat": 30.302553689454005,
"geo_name": "Hangzhou Grand Center"
},
"t": 1611394597651,
"success": true
}
For more information, see error code.
Is this page helpful?
YesFeedbackIs this page helpful?
YesFeedback