Has anyone tried adding a user name and password to the Hotspot through the PHP APi?
Have read the API manual but can't seem to find examples or the right command.
<?php
use PEAR2\Net\RouterOS;
require_once 'PEAR2_Net_RouterOS-1.0.0b5.phar';
$util = new RouterOS\Util($client = new RouterOS\Client('192.168.88.1', 'admin', 'password'));
$util->setMenu('/ip hotspot user')->add(
array(
'name' => 'user1',
'password' => 'password1',
'profile' => 'profile1'
)
);
<?php
use PEAR2\Net\RouterOS;
require_once 'PEAR2_Net_RouterOS-1.0.0b5.phar';
$util = new RouterOS\Util($client = new RouterOS\Client('192.168.88.1', 'admin', 'password'));
$util->setMenu('/ip hotspot user')->add(
array(
'name' => 'user1',
'password' => 'password1',
'profile' => 'profile1'
)
);