Created How to use (markdown)

oortega 2016-10-19 11:35:55 -05:00
parent d744d653c3
commit 9a823deb51

16
How-to-use.md Normal file

@ -0,0 +1,16 @@
## Connection
`#! /usr/bin/python`
`import routeros_api`
`import collections`
`connection = routeros_api.RouterOsApiPool('api.megabit.mx', username='admin', password='Frecuencia@5.8')`
`api = connection.get_api()`
## Get Lists Queues
`list_queues = api.get_resource('/queue/simple', structure=collections.defaultdict(routeros_api.api_structure.StringField, disabled=routeros_api.api_structure.BooleanField())) `
`print (list_queues.get())`
`raw_input()`