From 4044e525a5243da3f336c986877f9afed8e48384 Mon Sep 17 00:00:00 2001 From: Steve Haskew Date: Thu, 21 Jun 2018 17:15:32 +0100 Subject: [PATCH] Reformat connection section to one block of code not individual lines. --- How-to-use.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/How-to-use.md b/How-to-use.md index cc000ed..0dbd1a2 100644 --- a/How-to-use.md +++ b/How-to-use.md @@ -1,10 +1,12 @@ ## Connection -`#! /usr/bin/python` +``` +#! /usr/bin/python` -`import routeros_api` +import routeros_api -`connection = routeros_api.RouterOsApiPool('IP', username='admin', password='')` -`api = connection.get_api()` +connection = routeros_api.RouterOsApiPool('IP', username='admin', password='') +api = connection.get_api() +``` ## Execute Commands Example: `api.get_binary_resource('/').call('tool/fetch',{ 'url': "https://dummy.url" })`