17 lines
480 B
PHP
17 lines
480 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();
|
|
|
|
$System = new \alphayax\freebox\api\v3\services\config\System( $App);
|
|
|
|
/** @var \alphayax\freebox\api\v3\models\SystemConfig $SystemConfig */
|
|
$SystemConfig = $System->getConfiguration();
|
|
|
|
print_r( $SystemConfig);
|