• If you need help or want to discuss things, you now can also join us on our Discord Server!
  • A first preview of the unlimited version of SinusBot can be found in the Upcoming Changes thread. A version for Windows will follow, but we don't have a release date, yet.

Hide API login requests

Status
Not open for further replies.

Dooley_labs

Donor
is awesome!
Insider
How would I be able to prevent the bot from logging every query sent from my webstream? I know the Sinusbot panel is capable and appears to achieve this, however I am unable to replicate this. Below is my current code. I'm looking to suppress the following:
Code:
2017-08-01T00:48:28-05:00 LOGIN [bot] OK
2017-08-01T00:48:27-05:00 LOGIN [bot] OK
2017-08-01T00:48:25-05:00 LOGIN [bot] OK
2017-08-01T00:48:25-05:00 LOGIN [bot] OK

PHP:
error_reporting('E_ERROR');
include("sinusbot.class.php");
include("config.php");
$sinusbot = new SinusBot($ipport);
$sinusbot->login($user, $passwd);
$status = $sinusbot->getStatus($inst);
 

Xuxe

Containerholic
Staff member
is awesome!
V.I.P.
Contributor
Insider
Hi.

The interface logins once and reuses the security Token.
For the WebStream you have to login every time with php, so you can't hide it until you store the token on Server side.
 
Status
Not open for further replies.
Top