Community discussions

MikroTik App
 
fivestar
newbie
Topic Author
Posts: 29
Joined: Wed Jul 05, 2017 7:46 pm

Creating a global variable using API

Sun Nov 26, 2023 1:12 am

I need to create a global variable with name user10 and value 4000 but i can find the way to doit:
   $API = new RouterosAPI();
    if ($API->connect($server['ip'], $usuario, $clave)) {
        $API->comm("/global", [
            "name" => $name,
            "value" => $uniqueFileName,
        ]);


try this way but dont work, any ideas?

Who is online

Users browsing this forum: No registered users and 5 guests