viernes, 11 de mayo de 2018

PHP Api add user and password to Hotspot


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'
    ) 
);


https://forum.mikrotik.com/viewtopic.php?t=104614

No hay comentarios:

Publicar un comentario