From 9a823deb510ff411daffaae2fd64f4952bc9ca39 Mon Sep 17 00:00:00 2001 From: oortega Date: Wed, 19 Oct 2016 11:35:55 -0500 Subject: [PATCH] Created How to use (markdown) --- How-to-use.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 How-to-use.md 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()`