alchemyguy / youtubelaravelapi Goto Github PK
View Code? Open in Web Editor NEWA Laravel wrapper over Youtube API v3, with customized functionalities
License: MIT License
A Laravel wrapper over Youtube API v3, with customized functionalities
License: MIT License
Thank you for this awesome package.
The broadcast function returns array of details from YouTube, good.
But how can I use this info to start live stream using a pre-recorded video.
I don't see how to add a video on transitionEvent()
function.
Please Help!
Hey, can anyone help me with this? I have an issue, where my program can't create login url, it seems missing client_id. I have double check on my env and my Google Console, and it's all good. It's work well on localhost, but when I upload it on my server, it's not work.
Code on my controller:
$authObject = new AuthenticateService;
$authUrl = $authObject->getLoginUrl(auth()->user()->email);
Thanks before~
Hey guys,
I've just installed the package and wanted to get the config using the command as is mentioned in readme:
php artisan vendor:publish --tag='youtube-config'
but I'm getting the error: Unable to locate publishable resources.
.
Any idea about it?
I would like to get the list of videos from a channel , by owner or by ID
I'm trying to Upload the Video using Following Code but I can't see $googleToken where I can get this.
Code:
$response = $videoServiceObject->uploadVideo($googleToken, $vdir.$vid_name, [ 'title' => 'My Awesome Video', 'description' => 'You can also specify your video description here.', 'tags' => ['foo', 'bar', 'baz'], 'category_id' => 10 ] );
$authUrl = $authObject->getLoginUrl('email','identifier');
$code = Input::get('code');
code param in "$authUrl" is missing. Need Help!
Hi! I was wondering if your package will add support for Laravel v6 and v7 :)
Greetings
How to increment auth scopes? Or want different scopes when auth?
Why is this change important to you? How would you use it?
I want to comment a video but I can't because of the auth scopes.
How can it benefit other users?
Not obligatory, but suggest an idea for implementing addition or change.
Include as many relevant details about the environment you experienced the bug in and how to reproduce it.
event gets created
encoder starts sending live broadcast with zero dropped frames
but
$streamStatus = $ytEventObj->transitionEvent($authToken, $youtubeEventId, $broadcastStatus);
returns 'false' as boolean value.
Here's the code
$authToken = Session::get('authToken');
$youtubeEventId = Session::get('youtubeEventId');
$broadcastStatus="testing";
$ytEventObj = new LiveStreamService();
$streamStatus = $ytEventObj->transitionEvent($authToken, $youtubeEventId, $broadcastStatus);
return response()->json($streamStatus);
Please let me know corrections if any
Your requirements could not be resolved to an installable set of packages.
Problem 1
- alchemyguy/youtube-laravel-api[dev-master, v1.0.1, ..., v1.0.3] require google/apiclient ^2.0 -> satisfiable by google/apiclient[v2.0.0-RC1, ..., 2.x-dev (alias of dev-master)].
- google/apiclient 2.x-dev is an alias of google/apiclient dev-master and thus requires it to be installed too.
- alchemyguy/youtube-laravel-api[1.0.0, ..., v1.0.0.2] require illuminate/support ~5.1 -> found illuminate/support[v5.1.1, ..., 5.8.x-dev] but these were not loaded, likely because it conflicts with another require.
- google/apiclient[dev-master, v2.6.0, ..., v2.10.1] require guzzlehttp/psr7 ^1.2 -> found guzzlehttp/psr7[1.2.0, ..., 1.x-dev] but the package is fixed to 2.0.0 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
- google/apiclient[v2.0.0-RC1, ..., v2.2.4] require monolog/monolog ^1.17 -> found monolog/monolog[1.17.0, ..., 1.x-dev] but the package is fixed to 2.3.2 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
- google/apiclient[v2.3.0, ..., v2.5.0] require guzzlehttp/guzzle ~5.3.1||~6.0 -> found guzzlehttp/guzzle[5.3.1, ..., 5.3.x-dev, 6.0.0, ..., 6.5.x-dev] but it conflicts with your root composer.json require (^7.3).
- alchemyguy/youtube-laravel-api 1.0.x-dev is an alias of alchemyguy/youtube-laravel-api dev-master and thus requires it to be installed too.
- Root composer.json requires alchemyguy/youtube-laravel-api ^1.0 -> satisfiable by alchemyguy/youtube-laravel-api[1.0.0, ..., 1.0.x-dev (alias of dev-master)].
Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
Installation failed, reverting ./composer.json and ./composer.lock to their original content.
I would like to know how we can store Youtube Authentication because every time I try to go to the $authUrl
it simlpy asks again for my authentication, and if I try to do something with that requires a valid token, it gives me an error saying I have an invalid token.
Using authChannelWithCode($code)
on a channel with Live-Streaming disabled causes an Exception.
Example-Code:
$ytAuth = new AuthenticateService();
dd($ytAuth->authChannelWithCode(Input::get('code')));
Exception (thrown in vendor/alchemyguy/youtube-laravel-api/src/AuthenticateService.php:106
):
{ "error": { "code": 403, "message": "The user is blocked from live streaming.", "errors": [ { "message": "The user is blocked from live streaming.", "domain": "youtube.liveBroadcast", "reason": "livePermissionBlocked", "extendedHelp": "https://support.google.com/youtube/answer/2853834" } ] } }
This prevents applications to receive the Auth-Codes for channels without the Live-Streaming-Feature being enabled.
Php code:
$channelServiceObject = new ChannelService;
$mine = $channelServiceObject->subscriptionByChannelId($params = array('forChannelId'=>'UCk04n-A096jaFFwMhRL7dAA','mine'=>true));
return $mine;
i got this error.
"""
{\n
"error": {\n
"errors": [\n
{\n
"domain": "youtube.parameter",\n
"reason": "authorizationRequired",\n
"message": "The request uses the \u003ccode\u003emine\u003c/code\u003e parameter but is not properly authorized.",\n
"locationType": "parameter",\n
"location": "mine"\n
}\n
],\n
"code": 401,\n
"message": "The request uses the \u003ccode\u003emine\u003c/code\u003e parameter but is not properly authorized."\n
}\n
}\n
"""
##Auth-Token and Details For Channel
$authObject = new AuthenticateService;
$authResponse = $authObject->authChannelWithCode($code);
You say in documentation that This will return an array. But it returns an object.
Hi, Thank you to creating this package.
I want to upload videos only in my channel so can I ignore the Oauth step to give the permission?.
I want people can upload videos directly to my channel.
After by youtube video upload response missing add youtube's response video ID
I'm trying to setup the auth page callback, and when I try to visit the page, Laravel screams about the Redirect URL has to be absolute. I don't understand what this means, or what I'm doing wrong.
Up to mention, that I'm using a VirtualHost for this, as you can see in the redirect_url
defined in the .env
file.
if I go to http://localhost:8000/youtube/callback, then it does works.. but how can I keep the VirtualHost as redirect_url
instead localhost? because otherwise I cannot authorize a localhost URL in the Credentials / Verified Domains in Google Console.
`use Illuminate\Support\Facades\Route;
use alchemyguy\YoutubeLaravelApi\AuthenticateService;
Route::get('youtube-auth', function () {
$authObject = new AuthenticateService;
$authUrl = $authObject->getLoginUrl('[email protected]','enahmasenu95');
dd($authUrl);
});
Route::get('authcallback', function () {
$code = Input::get('code');
$identifier = Input::get('state');
});`
Include as many relevant details about the environment you experienced the bug in and how to reproduce it.
I'm gettting missing the required client identifier exception while uploading video to youtube
`$authObject = new AuthenticateService;
# Replace the identifier with a unqiue identifier for account or channel
$authUrl = $authObject->getLoginUrl('[email protected]','UCC1YGOAVvZBM5d24jRGwSWw');`
what is the meaning of identifer in the function
$authObject->getLoginUrl('email','identifier');
from where did i got those two variables
$code = Input::get('code');
$identifier = Input::get('state');
please if you seen my issue please give me feedbcak about this
thanks
Could not find a matching version of package alchemyguy/YoutubeLaravelApi. Check the package spelling, your version constraint and that the package is available in a stability which matches your mini
mum-stability (stable).
laravel 5.4
how to fix this?
Problem 1
- Installation request for alchemyguy/youtube-laravel-api v1.0.0.2 -> satisfiable by alchemyguy/youtube-laravel-api[v1.0.0.2].
- Conclusion: remove laravel/framework v8.5.0
- Conclusion: don't install laravel/framework v8.5.0
- alchemyguy/youtube-laravel-api v1.0.0.2 requires illuminate/support ~5.1 -> satisfiable by illuminate/support[5.1.x-dev, 5.2.x-dev, 5.3.x-dev, 5.4.x-dev, 5.5.x-dev, 5.6.x-dev, 5.7.17, 5.7.18, 5.7.19, 5.7.x-dev, 5.8.x-dev, v5.1
.1, v5.1.13, v5.1.16, v5.1.2, v5.1.20, v5.1.22, v5.1.25, v5.1.28, v5.1.30, v5.1.31, v5.1.41, v5.1.6, v5.1.8, v5.2.0, v5.2.19, v5.2.21, v5.2.24, v5.2.25, v5.2.26, v5.2.27, v5.2.28, v5.2.31, v5.2.32, v5.2.37, v5.2.43, v5.2.45, v5.2.6,
v5.2.7, v5.3.0, v5.3.16, v5.3.23, v5.3.4, v5.4.0, v5.4.13, v5.4.17, v5.4.19, v5.4.27, v5.4.36, v5.4.9, v5.5.0, v5.5.16, v5.5.17, v5.5.2, v5.5.28, v5.5.33, v5.5.34, v5.5.35, v5.5.36, v5.5.37, v5.5.39, v5.5.40, v5.5.41, v5.5.43, v5.5
.44, v5.6.0, v5.6.1, v5.6.10, v5.6.11, v5.6.12, v5.6.13, v5.6.14, v5.6.15, v5.6.16, v5.6.17, v5.6.19, v5.6.2, v5.6.20, v5.6.21, v5.6.22, v5.6.23, v5.6.24, v5.6.25, v5.6.26, v5.6.27, v5.6.28, v5.6.29, v5.6.3, v5.6.30, v5.6.31, v5.6.3
2, v5.6.33, v5.6.34, v5.6.35, v5.6.36, v5.6.37, v5.6.38, v5.6.39, v5.6.4, v5.6.5, v5.6.6, v5.6.7, v5.6.8, v5.6.9, v5.7.0, v5.7.1, v5.7.10, v5.7.11, v5.7.15, v5.7.2, v5.7.20, v5.7.21, v5.7.22, v5.7.23, v5.7.26, v5.7.27, v5.7.28, v5.7
.3, v5.7.4, v5.7.5, v5.7.6, v5.7.7, v5.7.8, v5.7.9, v5.8.0, v5.8.11, v5.8.12, v5.8.14, v5.8.15, v5.8.17, v5.8.18, v5.8.19, v5.8.2, v5.8.20, v5.8.22, v5.8.24, v5.8.27, v5.8.28, v5.8.29, v5.8.3, v5.8.30, v5.8.31, v5.8.32, v5.8.33, v5.
8.34, v5.8.35, v5.8.36, v5.8.4, v5.8.8, v5.8.9].
- don't install illuminate/support 5.5.x-dev|don't install laravel/framework v8.5.0
- don't install illuminate/support v5.5.0|don't install laravel/framework v8.5.0
- don't install illuminate/support v5.5.16|don't install laravel/framework v8.5.0
- don't install illuminate/support v5.5.17|don't install laravel/framework v8.5.0
- don't install illuminate/support v5.5.2|don't install laravel/framework v8.5.0
- don't install illuminate/support v5.5.28|don't install laravel/framework v8.5.0
- don't install illuminate/support v5.5.33|don't install laravel/framework v8.5.0
- don't install illuminate/support v5.5.34|don't install laravel/framework v8.5.0
- don't install illuminate/support v5.5.35|don't install laravel/framework v8.5.0
- don't install illuminate/support v5.5.36|don't install laravel/framework v8.5.0
- don't install illuminate/support v5.5.37|don't install laravel/framework v8.5.0
- don't install illuminate/support v5.5.39|don't install laravel/framework v8.5.0
- don't install illuminate/support v5.5.40|don't install laravel/framework v8.5.0
- don't install illuminate/support v5.5.41|don't install laravel/framework v8.5.0
- don't install illuminate/support v5.5.43|don't install laravel/framework v8.5.0
- don't install illuminate/support v5.5.44|don't install laravel/framework v8.5.0
- don't install illuminate/support 5.6.x-dev|don't install laravel/framework v8.5.0
- don't install illuminate/support v5.6.0|don't install laravel/framework v8.5.0
- don't install illuminate/support v5.6.1|don't install laravel/framework v8.5.0
- don't install illuminate/support v5.6.10|don't install laravel/framework v8.5.0
- don't install illuminate/support v5.6.11|don't install laravel/framework v8.5.0
- don't install illuminate/support v5.6.12|don't install laravel/framework v8.5.0
- don't install illuminate/support v5.6.13|don't install laravel/framework v8.5.0
- don't install illuminate/support v5.6.14|don't install laravel/framework v8.5.0
- don't install illuminate/support v5.6.15|don't install laravel/framework v8.5.0
- don't install illuminate/support v5.6.16|don't install laravel/framework v8.5.0
- don't install illuminate/support v5.6.17|don't install laravel/framework v8.5.0
- don't install illuminate/support v5.6.19|don't install laravel/framework v8.5.0
- don't install illuminate/support v5.6.2|don't install laravel/framework v8.5.0
- don't install illuminate/support v5.6.20|don't install laravel/framework v8.5.0
- don't install illuminate/support v5.6.21|don't install laravel/framework v8.5.0
- don't install illuminate/support v5.6.22|don't install laravel/framework v8.5.0
- don't install illuminate/support v5.6.23|don't install laravel/framework v8.5.0
- don't install illuminate/support v5.6.24|don't install laravel/framework v8.5.0
- don't install illuminate/support v5.6.25|don't install laravel/framework v8.5.0
- don't install illuminate/support v5.6.26|don't install laravel/framework v8.5.0
- don't install illuminate/support v5.6.27|don't install laravel/framework v8.5.0
- don't install illuminate/support v5.6.28|don't install laravel/framework v8.5.0
- don't install illuminate/support v5.6.29|don't install laravel/framework v8.5.0
- don't install illuminate/support v5.6.3|don't install laravel/framework v8.5.0
- don't install illuminate/support v5.6.30|don't install laravel/framework v8.5.0
- don't install illuminate/support v5.6.31|don't install laravel/framework v8.5.0
- don't install illuminate/support v5.6.32|don't install laravel/framework v8.5.0
- don't install illuminate/support v5.6.33|don't install laravel/framework v8.5.0
- don't install illuminate/support v5.6.34|don't install laravel/framework v8.5.0
- don't install illuminate/support v5.6.35|don't install laravel/framework v8.5.0
- don't install illuminate/support v5.6.36|don't install laravel/framework v8.5.0
- don't install illuminate/support v5.6.37|don't install laravel/framework v8.5.0
- don't install illuminate/support v5.6.38|don't install laravel/framework v8.5.0
- don't install illuminate/support v5.6.39|don't install laravel/framework v8.5.0
- don't install illuminate/support v5.6.4|don't install laravel/framework v8.5.0
- don't install illuminate/support v5.6.5|don't install laravel/framework v8.5.0
- don't install illuminate/support v5.6.6|don't install laravel/framework v8.5.0
- don't install illuminate/support v5.6.7|don't install laravel/framework v8.5.0
- don't install illuminate/support v5.6.8|don't install laravel/framework v8.5.0
- don't install illuminate/support v5.6.9|don't install laravel/framework v8.5.0
- don't install illuminate/support 5.7.17|don't install laravel/framework v8.5.0
- don't install illuminate/support 5.7.18|don't install laravel/framework v8.5.0
- don't install illuminate/support 5.7.19|don't install laravel/framework v8.5.0
- don't install illuminate/support 5.7.x-dev|don't install laravel/framework v8.5.0
- don't install illuminate/support v5.7.0|don't install laravel/framework v8.5.0
- don't install illuminate/support v5.7.1|don't install laravel/framework v8.5.0
- don't install illuminate/support v5.7.10|don't install laravel/framework v8.5.0
- don't install illuminate/support v5.7.11|don't install laravel/framework v8.5.0
- don't install illuminate/support v5.7.15|don't install laravel/framework v8.5.0
- don't install illuminate/support v5.7.2|don't install laravel/framework v8.5.0
- don't install illuminate/support v5.7.20|don't install laravel/framework v8.5.0
- don't install illuminate/support v5.7.21|don't install laravel/framework v8.5.0
- don't install illuminate/support v5.7.22|don't install laravel/framework v8.5.0
- don't install illuminate/support v5.7.23|don't install laravel/framework v8.5.0
- don't install illuminate/support v5.7.26|don't install laravel/framework v8.5.0
- don't install illuminate/support v5.7.27|don't install laravel/framework v8.5.0
- don't install illuminate/support v5.7.28|don't install laravel/framework v8.5.0
- don't install illuminate/support v5.7.3|don't install laravel/framework v8.5.0
- don't install illuminate/support v5.7.4|don't install laravel/framework v8.5.0
- don't install illuminate/support v5.7.5|don't install laravel/framework v8.5.0
- don't install illuminate/support v5.7.6|don't install laravel/framework v8.5.0
- don't install illuminate/support v5.7.7|don't install laravel/framework v8.5.0
- don't install illuminate/support v5.7.8|don't install laravel/framework v8.5.0
- don't install illuminate/support v5.7.9|don't install laravel/framework v8.5.0
- don't install illuminate/support 5.8.x-dev|don't install laravel/framework v8.5.0
- don't install illuminate/support v5.8.0|don't install laravel/framework v8.5.0
- don't install illuminate/support v5.8.11|don't install laravel/framework v8.5.0
- don't install illuminate/support v5.8.12|don't install laravel/framework v8.5.0
- don't install illuminate/support v5.8.14|don't install laravel/framework v8.5.0
- don't install illuminate/support v5.8.15|don't install laravel/framework v8.5.0
- don't install illuminate/support v5.8.17|don't install laravel/framework v8.5.0
- don't install illuminate/support v5.8.18|don't install laravel/framework v8.5.0
- don't install illuminate/support v5.8.19|don't install laravel/framework v8.5.0
- don't install illuminate/support v5.8.2|don't install laravel/framework v8.5.0
- don't install illuminate/support v5.8.20|don't install laravel/framework v8.5.0
- don't install illuminate/support v5.8.22|don't install laravel/framework v8.5.0
- don't install illuminate/support v5.8.24|don't install laravel/framework v8.5.0
- don't install illuminate/support v5.8.27|don't install laravel/framework v8.5.0
- don't install illuminate/support v5.8.28|don't install laravel/framework v8.5.0
- don't install illuminate/support v5.8.29|don't install laravel/framework v8.5.0
- don't install illuminate/support v5.8.3|don't install laravel/framework v8.5.0
- don't install illuminate/support v5.8.30|don't install laravel/framework v8.5.0
- don't install illuminate/support v5.8.31|don't install laravel/framework v8.5.0
- don't install illuminate/support v5.8.32|don't install laravel/framework v8.5.0
- don't install illuminate/support v5.8.33|don't install laravel/framework v8.5.0
- don't install illuminate/support v5.8.34|don't install laravel/framework v8.5.0
- don't install illuminate/support v5.8.35|don't install laravel/framework v8.5.0
- don't install illuminate/support v5.8.36|don't install laravel/framework v8.5.0
- don't install illuminate/support v5.8.4|don't install laravel/framework v8.5.0
- don't install illuminate/support v5.8.8|don't install laravel/framework v8.5.0
- don't install illuminate/support v5.8.9|don't install laravel/framework v8.5.0
- don't install illuminate/support 5.1.x-dev|don't install laravel/framework v8.5.0
- don't install illuminate/support 5.2.x-dev|don't install laravel/framework v8.5.0
- don't install illuminate/support 5.3.x-dev|don't install laravel/framework v8.5.0
- don't install illuminate/support 5.4.x-dev|don't install laravel/framework v8.5.0
- don't install illuminate/support v5.1.1|don't install laravel/framework v8.5.0
- don't install illuminate/support v5.1.13|don't install laravel/framework v8.5.0
- don't install illuminate/support v5.1.16|don't install laravel/framework v8.5.0
- don't install illuminate/support v5.1.2|don't install laravel/framework v8.5.0
- don't install illuminate/support v5.1.20|don't install laravel/framework v8.5.0
- don't install illuminate/support v5.1.22|don't install laravel/framework v8.5.0
- don't install illuminate/support v5.1.25|don't install laravel/framework v8.5.0
- don't install illuminate/support v5.1.28|don't install laravel/framework v8.5.0
- don't install illuminate/support v5.1.30|don't install laravel/framework v8.5.0
- don't install illuminate/support v5.1.31|don't install laravel/framework v8.5.0
- don't install illuminate/support v5.1.41|don't install laravel/framework v8.5.0
- don't install illuminate/support v5.1.6|don't install laravel/framework v8.5.0
- don't install illuminate/support v5.1.8|don't install laravel/framework v8.5.0
- don't install illuminate/support v5.2.0|don't install laravel/framework v8.5.0
- don't install illuminate/support v5.2.19|don't install laravel/framework v8.5.0
- don't install illuminate/support v5.2.21|don't install laravel/framework v8.5.0
- don't install illuminate/support v5.2.24|don't install laravel/framework v8.5.0
- don't install illuminate/support v5.2.25|don't install laravel/framework v8.5.0
- don't install illuminate/support v5.2.26|don't install laravel/framework v8.5.0
- don't install illuminate/support v5.2.27|don't install laravel/framework v8.5.0
- don't install illuminate/support v5.2.28|don't install laravel/framework v8.5.0
- don't install illuminate/support v5.2.31|don't install laravel/framework v8.5.0
- don't install illuminate/support v5.2.32|don't install laravel/framework v8.5.0
- don't install illuminate/support v5.2.37|don't install laravel/framework v8.5.0
- don't install illuminate/support v5.2.43|don't install laravel/framework v8.5.0
- don't install illuminate/support v5.2.45|don't install laravel/framework v8.5.0
- don't install illuminate/support v5.2.6|don't install laravel/framework v8.5.0
- don't install illuminate/support v5.2.7|don't install laravel/framework v8.5.0
- don't install illuminate/support v5.3.0|don't install laravel/framework v8.5.0
- don't install illuminate/support v5.3.16|don't install laravel/framework v8.5.0
- don't install illuminate/support v5.3.23|don't install laravel/framework v8.5.0
- don't install illuminate/support v5.3.4|don't install laravel/framework v8.5.0
- don't install illuminate/support v5.4.0|don't install laravel/framework v8.5.0
- don't install illuminate/support v5.4.13|don't install laravel/framework v8.5.0
- don't install illuminate/support v5.4.17|don't install laravel/framework v8.5.0
- don't install illuminate/support v5.4.19|don't install laravel/framework v8.5.0
- don't install illuminate/support v5.4.27|don't install laravel/framework v8.5.0
- don't install illuminate/support v5.4.36|don't install laravel/framework v8.5.0
- don't install illuminate/support v5.4.9|don't install laravel/framework v8.5.0
- Installation request for laravel/framework v8.5.0 -> satisfiable by laravel/framework[v8.5.0].
Installation failed, reverting ./composer.json to its original content.
$resource = new \Google_Service_YouTube_Subscription($propertyObject);
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.