Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

youtube-api 3.0 update video description and/or title

Can someone point me to how I can update a video description using the youtube-api 3.0 version.

I see this code for adding/updating tags

https://code.google.com/p/youtube-api-samples/source/browse/#git/samples/php

but don't know what protocol would be for description and/or title.

like image 546
Hans Guth Avatar asked Oct 02 '22 20:10

Hans Guth


1 Answers

Just like that example: https://github.com/youtube/api-samples/blob/master/php/update_video.php

Instead of adding tags in these lines,

you can set title and desc like:

$videoSnippet['description'] = 'description'; $videoSnippet['title'] = 'title';

That's all.

like image 74
Ibrahim Ulukaya Avatar answered Oct 05 '22 10:10

Ibrahim Ulukaya