Take back videoId

Hi everybody!

Using the PHP SDK to upload a video:

$video = $client->videos->upload(
    '/path/to/video.mp4', 
    array('title' => 'Course #4 - Part B')
);

How can I take the videoId:

Thanks!
José Antonio.

Hi,
After the upload using the $video object :

$video->videoId

seems to be a good way.

Here’s the doc with examples

We may update the doc with the way to get the videoId in the future.

1 Like