Madcoda\Youtube\Youtube::searchChannelVideos PHP Method

searchChannelVideos() public method

Search only videos in the channel
public searchChannelVideos ( string $q, string $channelId, integer $maxResults = 10, string $order = null ) : object
$q string
$channelId string
$maxResults integer
$order string
return object
    public function searchChannelVideos($q, $channelId, $maxResults = 10, $order = null)
    {
        $params = array('q' => $q, 'type' => 'video', 'channelId' => $channelId, 'part' => 'id, snippet', 'maxResults' => $maxResults);
        if (!empty($order)) {
            $params['order'] = $order;
        }
        return $this->searchAdvanced($params);
    }