System Identity API PEAR2
Posted: Mon Nov 04, 2013 1:45 pm
Hi again
I tried print a name of my mikrotik router and it returns nothing :S
This is the code:
I tried print a name of my mikrotik router and it returns nothing :S
This is the code:
php code
<?php use PEAR2\Net\RouterOS; // require_once 'pear2\src\PEAR2\Autoload.php'; require_once 'PEAR2_Net_RouterOS-1.0.0b4.phar'; $client = new RouterOS\Client('xx.xxx.xx.xxx', 'victor', 'xxxxx'); $cabecera = new RouterOS\Request('/system/identity/print'); return $cabecera('name'); ?>