freebox_api_php/exemple.php

17 lines
433 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.example', 'Freebox PHP API Exemple', '0.0.1');
$App->authorize();
$App->openSession();
2016-02-06 17:34:24 +01:00
$Downloads = new \alphayax\freebox\api\v3\services\download\Download( $App);
$a = $Downloads->getAll();
var_dump( $a);
2016-02-06 17:34:24 +01:00
$b = $Downloads->getLogFromId( 156);
var_dump( $b);