public function search($q, $maxResults = 10, $part = ['id', 'snippet'])
    {
        $params = [
            'q' => $q,
            'part' => implode(', ', $part),
            'maxResults' => $maxResults,
        ];

        return $this->searchAdvanced($params);
    }
public function search($q, $maxResults = 10, $part = ['id', 'snippet'])
    {
        $params = [
            'q' => $q,
            'part' => implode(', ', $part),
            'maxResults' => $maxResults,
        ];

        return $this->searchAdvanced($params);
    }
public function search ( $ q , $ maxResults = 10 , $ part = [ 'id' , 'snippet' ] ) { $ params = [ 'q' => $ q , 'part' => implode ( ', ' , $ part ) , 'maxResults' => $ maxResults , ] ; return $ this -> searchAdvanced ( $ params ) ; }
Simple search interface, this search all stuffs
and order by relevance

@param $q
@param integer $maxResults
@param array $part
@return array
Simple search interface this search all stuffs and order by relevance