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

Popular posts from this blog

css - Which browser returns the correct result for getBoundingClientRect of an SVG element? -

gcc - Calling fftR4() in c from assembly -

Function that returns a formatted array in VBA -