get https://api.lumenpath.com/api////
Retrieve a sensor and associated tags, location and metadata information.
curl --user "c0eb26da-f39e-4211-9964-095d020dfe7b:Mry2oK3GSjy78O2WyORgJQ" https://api.lumenpath.com/api/sensor/A1C3DC52-5372-42E8-B495-39F50EED5D7E/1/1/
Response
========
{"uuid":"A1C3DC52-5372-42E8-B495-39F50EED5D7E","major_version":"1","minor_version":"1","account_id":"251ecc05-98c7-4fea-957e-d9885cc7c75e","location":["45.5110233"," -122.6720035"],"tags":["doorway","test_sensor"],"metadata":{"venue":{"id":"1234","hour_open":"8 AM","name":"Downtown Mall","hour_close":"8 PM"},"messages":{"help":"Call 1800-CALL-ME-NOW","welcome":"Welcome to Downtown mall"}}}
$.ajax
({
type: "GET",
url: "https://api.lumenpath.com/api/sensor/A1C3DC52-5372-42E8-B495-39F50EED5D7E/1/1/",
dataType: 'json',
async: false,
headers: {
"Authorization": "Basic " + btoa("c0eb26da-f39e-4211-9964-095d020dfe7b:Mry2oK3GSjy78O2WyORgJQ")
},
success: function (data){
alert("Found sensor");
//console.log(data);
}
});