youtube api - Specifying format parameter in PHP youTubeAPI -
i using google-api-php-client search youtube. want specify format=5 filter embedable videos.
$client = new google_client(); $client->setdeveloperkey($developer_key); $youtube = new google_youtubeservice($client); $searchresponse = $youtube->search->listsearch('id,snippet', array( 'q' => $searchstr, 'maxresults' => $maxresultsnum, )); foreach ($searchresponse['items'] $searchresult) { }
how specify format=5 can played in iphone. documentation has no reference on how this.
filter looking videosyndicated
your call like
$searchresponse = $youtube->search->listsearch('id,snippet', array( 'q' => $searchstr, 'maxresults' => $maxresultsnum, 'videosyndicated' => true, 'type' =>true ));
Comments
Post a Comment