Reformat connection section to one block of code not individual lines.

Steve Haskew 2018-06-21 17:15:32 +01:00
parent 658a036112
commit 4044e525a5

@ -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" })`