alchemyguy / YoutubeLaravelApi

A Laravel wrapper over Youtube API v3, with customized functionalities

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot use authChannelWithCode($code) if LiveStreaming is not enabled

Yasu-San opened this issue · comments

commented

Detailed description

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" } ] } } 

Context

This prevents applications to receive the Auth-Codes for channels without the Live-Streaming-Feature being enabled.

Your environment

  • PHP 7.4
  • Laravel 5.8
  • Manjaro Linux 20.1

@Yasu-San, sorry for late response, this is fixed in v1.0.1