freebox_api_php/exemple/config/IncomingPort.php

15 lines
407 B
PHP
Raw Normal View History

<?php
/// Require Composer AutoLoader
2016-03-06 20:33:56 +01:00
require_once '../../vendor/autoload.php';
/// Define our application
$App = new \alphayax\freebox\utils\Application( 'com.alphayax.freebox.config', 'PHP API Example (Config)', '1.0.0');
$App->authorize();
$App->openSession();
// PortForwarding
$toto = new \alphayax\freebox\api\v3\services\config\NAT\IncomingPort( $App);
$a = $toto->getById('http');
var_dump( $a);