freebox_api_php/exemple/config/Freeplug.php

21 lines
556 B
PHP

<?php
/// Require Composer AutoLoader
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();
// Freeplug
$FreeplugService = new \alphayax\freebox\api\v3\services\config\Freeplug( $App);
$a = $FreeplugService->getNetworks();
print_r( $a);
$b = $FreeplugService->getFromId( '14:0C:76:27:12:19');
print_r( $b);
$c = $FreeplugService->resetFromId( '14:0C:76:27:12:19');
print_r( $c);