diff --git a/How-to-use.md b/How-to-use.md new file mode 100644 index 0000000..44ce8bd --- /dev/null +++ b/How-to-use.md @@ -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()`