Я думаю, что для использования этих запросов от Youtube API требуется Вход. Например, когда вы просто вставить это в вашем браузере запрос LiveBroadcasts.list URI в вашем браузере
https://www.googleapis.com/youtube/v3/liveBroadcasts
без вошедшего вы получите ошибку:
"errors": [
{
"domain": "global",
"reason": "required",
"message": "Login Required",
"locationType": "header",
"location": "Authorization",
Я думаю, что это также поможет читать дальше Implementing OAuth 2.0 Authorization.
Это поддерживаемое OAuth потоки:
- The server-side flow supports web applications that can securely store persistent information.
- The client-side flow supports JavaScript applications running in a browser.
- The installed application flow supports applications installed on a device, such as a phone or computer.
- The device flow supports devices with limited input capabilities, such as game consoles and video cameras.
*The service account flow supports server-to-server interactions that do not access user information. However, the YouTube Data API does not support this flow. Since there is no way to link a Service Account to a YouTube account, attempts to authorize requests with this flow will generate a NoLinkedYouTubeAccount error.
Короче говоря, я думаю, вы должны быть уполномочены выполнять этот API вызов.