Simple API

Hi,

Can someone help me with simple API python example

i need to disable some mange rule thru API.

please see wiki.mikrotik.com

also, you can check this:
http://forum.mikrotik.com/t/how-to-use-command-in-api-with-a-hyphen/70844/1

Thank you, but exact problem is because i don’t understand how to format this one-liner:

  rez = apiros.runCommand("/ip/firewall/mangle/enable=.id=*1")

or

 rez = apiros.runCommand("/ip/firewall/mangle/set\n =.id=*1\n =disabled=no")

none of them working.

     rez = apiros.runCommand("/ip/firewall/mangle/set","=.id="+"*1","=disabled="+"no")

works for me