<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
ayman-elmalah / laravel-youtube-uploader example snippets
public function another_callback(Request $request) {
$redirect_url ='http://localhost/youtube-uploader/public/youtube/callback/another_callback';
$video_id = 'YOUR_VIDEO_ID';
$youtube = Youtube::setRedirectUrl($redirect_url)->updateTags($video_id, ['tag 1', 'tag2', 'Tag3', 'Tag 4']);
}
public function another_callback(Request $request) {
$redirect_url ='http://localhost/youtube-uploader/public/youtube/callback/another_callback';
$youtube = Youtube::setRedirectUrl($redirect_url)
->createPlaylist('TITLE', 'DESCRIPTION');
// Get playlist id
$playlist_id = $youtube->createdPlaylistId();
}
public function another_callback(Request $request) {
$redirect_url ='http://localhost/youtube-uploader/public/youtube/callback/another_callback';
$youtube = Youtube::setRedirectUrl($redirect_url)
->VideoToPlaylist('VIDEO_ID', 'PLAYLIST_ID');
}
public function another_callback(Request $request) {
$redirect_url ='http://localhost/youtube-uploader/public/youtube/callback/another_callback';
$video_id = 'VIDEO_ID';
$youtube = Youtube::setRedirectUrl($redirect_url)->deleteVideo($video_id);
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.