15 lines
409 B
PHP
15 lines
409 B
PHP
<?php
|
|
|
|
/// Require Composer AutoLoader
|
|
require_once '../../vendor/autoload.php';
|
|
|
|
/// Define our application
|
|
$App = new \alphayax\freebox\utils\Application( 'com.alphayax.freebox.storage', 'PHP API Example (storage)', '1.0.0');
|
|
$App->authorize();
|
|
$App->openSession();
|
|
|
|
$StorageDiskService = new \alphayax\freebox\api\v3\services\Storage\Disk( $App);
|
|
$Disks = $StorageDiskService->getAll();
|
|
print_r( $Disks);
|
|
|