Hi thanks for answer my question! Yes know this is for the forum for the Particle.
“C:\Users\RONALD\Documents\IMK\WEB_PROGRAMMING\Wirless_Service\index.html”… and it works!! sweet
Now my question is, Why it is working without a web server? Every device(Spark Core, Photon, Electron) has a URL… right? and All requests to the device come through API server using TLS security… right? so if i want to make a request through API server, do i need a real web page like www.test.com to have an access to web server?.. I don’t know if this is the rigth place to ask but i just see a lot of people using this XMLHttpRequest in many Spark Core tutorials to get the data, here is my code:
var xmlHttp = new XMLHttpRequest();
xmlHttp.open( “GET”,“https://api.spark.io/v1/devices/54ff72066678574ABC120667/data?access_token=<>”, false );
xmlHttp.send( null );
var obj = json_parse(xmlHttp.responseText);