Community discussions

MikroTik App
 
ryvan
just joined
Topic Author
Posts: 3
Joined: Thu Jul 04, 2013 9:28 am

PHP API to add records to queue

Thu Jul 04, 2013 9:38 am

I am trying to add a rule to queue simple and i am using php api to do that as follows:

example:
$API->comm("/queue/simple/add", array(
    "target-address="=> "10.10.10.16",
);
and its throwing error on the debug page :
Connected...
<<< [17] /queue/simple/add
<<< [28] =target-address==10.10.10.16
>>> [5/5] bytes read.
>>> [5, 35]!trap
>>> [26/26] bytes read.
>>> [26, 8]=message=unknown parameter
>>> [5/5] bytes read.
>>> [5, 1]!done
while all other api works just fine..thanks in advance.
 
User avatar
boen_robot
Forum Guru
Forum Guru
Posts: 2400
Joined: Thu Aug 31, 2006 4:43 pm
Location: europe://Bulgaria/Plovdiv

Re: PHP API to add records to queue

Thu Jul 04, 2013 11:03 am

Are you using RouterOS v6?

In it, the "target-addresses" parameter has been renamed "target", to reflect the fact that it can accept either an interface or an IP address.

Who is online

Users browsing this forum: No registered users and 14 guests