2016-06-09 13:24:45 +02:00
|
|
|
<?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();
|
|
|
|
|
2016-06-09 13:31:51 +02:00
|
|
|
$StoragePartitionService = new \alphayax\freebox\api\v3\services\Storage\Partition( $App);
|
|
|
|
$Partitions = $StoragePartitionService->getAll();
|
|
|
|
print_r( $Partitions);
|
2016-06-09 13:24:45 +02:00
|
|
|
|