Quantcast
Channel: Active questions tagged youtube-api - Stack Overflow
Viewing all articles
Browse latest Browse all 3831

How to share private video for a list of emails using YouTube Data API

$
0
0

I need to update an upcoming Broadcast with YouTube Data API. I'm following this guide https://developers.google.com/youtube/v3/live/docs/liveBroadcasts/update

Right now I can change all the snippet info with the PHP SDK, but I don't see anywhere how to add trough the API a list of emails who will have access to the private broadcast video (just how we can do trough the panel of YouTube):

enter image description here

My current PHP try is this:

$videoId = $mVideoLive->id;$liveBroadcast = new Google_Service_YouTube_LiveBroadcast();$liveBroadcast->setId($videoId);$liveBroadcastSnippet = new \Google_Service_YouTube_LiveBroadcastSnippet();$liveBroadcastSnippet->setTitle("Mi gran titulo");$liveBroadcastSnippet->setDescription("Hola este es mi descripcion genial");$datetime = new DateTime('2021-04-08 11:00:00');$startTime = $datetime->format(DateTime::ATOM); // Updated ISO8601$liveBroadcastSnippet->setScheduledStartTime($startTime);$liveBroadcast->setSnippet($liveBroadcastSnippet);$response = $service->liveBroadcasts->update("snippet", $liveBroadcast);

Any thoughts?


Viewing all articles
Browse latest Browse all 3831

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>