Hello
I am trying to remove host from hotspot using php api
when i am running teh following code in mikrotik terminal its working fine
ip hotspot host remove [find where address="10.1.3.7"]
now i am trying the same with php api its not working here is my code
require('mikrotik_api/routeros_api.class.php');
$API = new routeros_api();
$API->debug = false;
if ($API->connect("$nas_ip", "$nas_username", "$nas_password")) { // Change this as necessery
$ARRAY = $API->write("/ip/hotspot/host/remove", array("?address" => '10.1.3.7'));
print_r($ARRAY);
$API->disconnect();
}
please help me to solve this problem
thank you