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
Post a Comment