Rexima
Member
Hey,
I want to use the HTTP API in my own custom script.
And this doesnt work. i got no valid response
I want to use the HTTP API in my own custom script.
HTML:
sinusbot.http({
method: 'GET',
url: 'http://127.0.0.1:8087/api/v1/bot/login',
timeout: 6000,
data:
'{"username":"dev", "password":"dev", "botId":"149dcf02-2a06-4a79-9150-75c972ed8276"}'
},
function(error, response)
{
//var Response = JSON.parse(response.data);
sinusbot.log("Response: "+response.data);
});
And this doesnt work. i got no valid response