freebox_api_php/exemple/download/Download.php

19 lines
511 B
PHP
Raw Normal View History

<?php
/// Require Composer AutoLoader
require_once '../../vendor/autoload.php';
/// Define our application
$App = new \alphayax\freebox\utils\Application( 'com.alphayax.freebox.download', 'PHP API Example (Download)', '1.0.0');
$App->authorize();
$App->openSession();
2016-05-24 21:33:30 +02:00
/// List of all downloads
$DownloadService = new \alphayax\freebox\api\v3\services\download\Download( $App);
$Downloads = $DownloadService->getAll();
print_r( $Downloads);
2016-05-24 21:33:30 +02:00
/// Stats
$Stats = $DownloadService->getStats();
print_r( $Stats);