Posted in General by secst Mon Jul 18 2016 21:20:56 GMT+0000 (UTC)·Viewed 1,079 times

I got an the error .{"status":"false","reason":"api or project key missing"} The token and the host ip are correct. var token=localStorage.getItem("token"); var hostip=localStorage.getItem("hostip"); var data={deviceaddress:devaddress,hostip:hostip,wait:"true"}; var connect= ''; $.ajax({ type: "post", data: data, url: connect, beforeSend: function (req) { req.setRequestHeader("Accept", "*/*"); req.setRequestHeader("content-type", "application/json"); req.setRequestHeader("apikey", "WeavedDemoKey$2015"); req.setRequestHeader("token", token) }, success: function (result) { console.log(result); } }); Why?
Markdown is allowed