socialwifi/RouterOS-api

Parameter after print

marcelosantoro opened this issue · 5 comments

Hi friends....

I Would like to know... how can i send parameters to "list = api.get_resource()" or "list.get()" commands

Example
/interface print stats-detail
or
/ppp active print count-only

How can i get above results with RouterOS-api ???

nobody ??? :(

Have you figured out how to do it?

Have you figured out how to do it?

Cara infelizmente ainda não consegui. :(

Está tudo certo:

result = api.get_resource('interface/pppoe-server').call('print', arguments={'count-only': ''}, queries={'service': 'service10'})
print(json.dumps(result, indent=4))

mas retorna vazio.
Se alterar count-only para detail funciona.

THX @fernandolcx for the solution.
I'm closing this issue for now.
If you still have questions, feel free to reopen/comment.