quarta-feira, 2 de setembro de 2015

Mikrotik - User Manager API - create new user

solved with this code..
require('C:\Program Files\EasyPHP-12.1\www\my portable files/class routeros_api.php');
// new object api
$API = new routeros_api();
$API->debug = true;
if ($API->connect('192.168.3.1', 'userapi', '1234') ) {

$ARR=$API->comm("/tool/user-manager/user/add",Array( 
"customer" => "admin",
"name" => "11",
"password" => "11",
"shared-users" => "1",
"copy-from" => "1D",
));


$API -> disconnect();

}

?>

thanks...

0 comentários: