Community discussions

MikroTik App
 
UGP2
newbie
Topic Author
Posts: 32
Joined: Sun Apr 03, 2011 9:06 pm

Userman end time editing? (Add user and edit ??)

Sun Aug 21, 2011 12:16 pm

Hello,
I have userman version 4 but I can edit end time and left time with API (php or other )
please help me to do this job.
Last edited by UGP2 on Sun Aug 21, 2011 9:18 pm, edited 1 time in total.
 
UGP2
newbie
Topic Author
Posts: 32
Joined: Sun Apr 03, 2011 9:06 pm

Re: Userman end time editing?

Sun Aug 21, 2011 9:17 pm

    $API->write('/tool/user-manager/user/add',false);
    $API->write('=subscriber=admin',false);
    $API->write('=name='.$username,false);
    $API->write('=password='.$password,false);
    $API->write('=last-seen=never',false);
    $API->write('=credit-count=1',false);
    $API->write('=credit-left='.$type,false);
    $API->write('=credit-duration='.$type,false);
    $API->write('=credit-price=0',false);
    $API->write('=credit-time-added='.$type);
    $ARRAY = $API->read();
I get "argument error" when I want to add new user to userman!!!

Please help me!!
Also I test
 $API->comm("/tool/user-manager/user/add", array(
"subscriber"     => "admin",
"name" => $username,
"password" => $password,
"last-seen"  => "never",
"credit-count"  => "1",
"credit-left"  => $type,
"credit-duration"  => $type,
"credit-price"  => "0",
"credit-time-added"  => $type
));
 
murlin
just joined
Posts: 4
Joined: Thu Dec 16, 2010 7:41 pm

Re: Userman end time editing? (Add user and edit ??)

Mon Aug 22, 2011 11:11 pm

Hi There

Sorry i do not give you a solution but are asking a question:

Need to know where can i get a list of all commands you can ask mikrotik RB via API.
I want to ask things like CPU, Connected Users . . .

Is there something you can help me with?


Thank You

Albertus Geyser
 
UGP2
newbie
Topic Author
Posts: 32
Joined: Sun Apr 03, 2011 9:06 pm

Re: Userman end time editing? (Add user and edit ??)

Tue Aug 23, 2011 9:55 am

what do you need/
active user of what(ppp or ...)
 
ab130kd
newbie
Posts: 37
Joined: Thu Mar 02, 2006 8:11 pm
Location: Italy

Re: Userman end time editing?

Tue Oct 04, 2011 11:51 pm

how did you resolve this problem??? I'm trying to do the same thing...
    $API->write('/tool/user-manager/user/add',false);
    $API->write('=subscriber=admin',false);
    $API->write('=name='.$username,false);
    $API->write('=password='.$password,false);
    $API->write('=last-seen=never',false);
    $API->write('=credit-count=1',false);
    $API->write('=credit-left='.$type,false);
    $API->write('=credit-duration='.$type,false);
    $API->write('=credit-price=0',false);
    $API->write('=credit-time-added='.$type);
    $ARRAY = $API->read();
I get "argument error" when I want to add new user to userman!!!

Please help me!!
Also I test
 $API->comm("/tool/user-manager/user/add", array(
"subscriber"     => "admin",
"name" => $username,
"password" => $password,
"last-seen"  => "never",
"credit-count"  => "1",
"credit-left"  => $type,
"credit-duration"  => $type,
"credit-price"  => "0",
"credit-time-added"  => $type
));

Who is online

Users browsing this forum: No registered users and 85 guests