PHP:Youtube API thumbnails.set -


whenever run 1 error saying

undefined property: google_youtubeservice::$thumbnails fatal error: call member function set() on non-object

$searchresponse= $youtube->thumbnails->set("videoid",array('mediaupload'=>$media, 'videoid'=>'cac2jyonesi')); 

what's wrong?

your call should like

$setresponse = $youtube->thumbnails->set("your_video_id", array('mediaupload' => $media));

besides that, may have initialized $youtube object wrong, check sample answer.

most using older version of client library, doesn't have thumbnails class in it. please download latest library here.


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -