Hi,
How can I retrieve my accounts associated beacons list from https://cloud.estimote.com/v1/beacons REST api?
I am using this way but I am always facing cross-origin errors:
$.ajax({
url: 'https://cloud.estimote.com/v1/beacons',
type: 'GET',
xhrFields: {
withCredentials: true
},
headers: {
'Authorization': 'Basic ' + btoa('myAppID:myAppSecret')
},
crossDomain: true,
accepts: {
json: 'application/json'
}
}).done(function (data) {
console.debug(data);
}).error(function (httpRequest, textStatus, errorThrown)
{
console.debug("errorThrown=" + errorThrown);
});
I tried for few hours with lots of different ways but never got to it.
Thanks!
Sylvain Audet
MyDevPartner.com