mirror of
https://github.com/socialwifi/RouterOS-api.git
synced 2025-08-31 23:20:05 +02:00
Add info for executing commands
parent
b80444de0f
commit
658a036112
1 changed files with 5 additions and 1 deletions
|
@ -6,7 +6,11 @@
|
||||||
`connection = routeros_api.RouterOsApiPool('IP', username='admin', password='')`
|
`connection = routeros_api.RouterOsApiPool('IP', username='admin', password='')`
|
||||||
`api = connection.get_api()`
|
`api = connection.get_api()`
|
||||||
|
|
||||||
## Command
|
## Execute Commands Example:
|
||||||
|
`api.get_binary_resource('/').call('tool/fetch',{ 'url': "https://dummy.url" })`
|
||||||
|
|
||||||
|
|
||||||
|
## Fetch List/Resource
|
||||||
`list = api.get_resource('/command') `
|
`list = api.get_resource('/command') `
|
||||||
|
|
||||||
### Example
|
### Example
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue