PHP code example of billyriantono / youtube

1. Go to this page and download the library: Download billyriantono/youtube library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

billyriantono / youtube example snippets


'providers' => [
	'billyriantono\Youtube\YoutubeServiceProvider',
],

'aliases' => [
	'Youtube' => 'billyriantono\Youtube\YoutubeFacade',
],

'redirect_uri' => 'youtube-callback'

$id = Youtube::upload($pathToMovieFile);

return $id;

$params = [
	'title'	=> 'Laravel Screencast',
	'description' => 'My First Laravel Tutorial!',
	'category_id' => 10,
	'tags' => [
		'laravel',
		'eloquent',
		'awesome' // Of course!
	]
];

$id = Youtube::upload($pathToMovieFile, $params);

return $id;

Youtube::delete($id);