Telemetry - Get Locations
Getting the list of added locations
Gethttps://api.iotstadium.com/ext/locations
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer {{token}}"
}
{
"message": "success",
"code": 200,
"data": {
"locations": [
{
"id": 8,
"location_name": "Loc1",
"description": null,
"address": null,
"coord_lat": "",
"coord_long": "",
"created_by": {
"first_name": "Test",
"last_name": "QA",
"id": 78,
"email": "owner@gmail.com"
},
"custom_field": [
{
"id": 29,
"key": "Floor",
"parent_id": null,
"child": []
},
{
"id": 32,
"key": "Room",
"parent_id": null,
"child": []
},
{
"id": 36,
"key": "Place",
"parent_id": null,
"child": []
},
{
"id": 37,
"key": "Door",
"parent_id": null,
"child": []
},
{
"id": 35,
"key": "Block",
"parent_id": null,
"child": []
}
]
},
{
"id": 6,
"location_name": "Loc2",
"description": null,
"address": null,
"coord_lat": "",
"coord_long": "",
"created_by": {
"first_name": "Test",
"last_name": "QA",
"id": 78,
"email": "test.admin@iotstadium.com"
},
"custom_field": []
},
{
"id": 5,
"location_name": "Loc3",
"description": null,
"address": null,
"coord_lat": "",
"coord_long": "",
"created_by": {
"first_name": "Test",
"last_name": "QA",
"id": 78,
"email": "test.admin@iotstadium.com"
},
"custom_field": []
},
{
"id": 4,
"location_name": "Loc4",
"description": null,
"address": null,
"coord_lat": "",
"coord_long": "",
"created_by": {
"first_name": "Test",
"last_name": "QA",
"id": 78,
"email": "test.admin@iotstadium.com"
},
"custom_field": []
},
{
"id": 2,
"location_name": "Loc5",
"description": "Loc Desc",
"address": "Loc Address",
"coord_lat": "",
"coord_long": "",
"created_by": {
"first_name": "Test",
"last_name": "QA",
"id": 78,
"email": "test.admin@iotstadium.com"
},
"custom_field": []
}
]
}
}
{
"message": "Unauthorized (token isn’t provided, or is invalid)",
"code": 401,
"errors": {
"message": "Unauthorized (token isn’t provided, or is invalid)",
"field": "iot API"
}
}