Add app_token generation

This commit is contained in:
alphayax 2016-08-06 14:57:21 +02:00
parent 5599328df0
commit 174eff7dcb
1 changed files with 16 additions and 0 deletions

View File

@ -0,0 +1,16 @@
<?php
/// Require Composer AutoLoader
require_once '../../vendor/autoload.php';
/// Define our application
$App = new \alphayax\freebox\utils\Application( 'com.alphayax.freebox.os', 'AYX Freebox OS', '1.0.0');
/// Begin association (go to the Freebox Player led display)
echo "Begin association" . PHP_EOL;
$App->authorize();
$App->openSession();
echo "Generated app_token : ". $App->getAppToken() . PHP_EOL;