public function search($query)
    {
        if (!$this->searchEnabled) {
            throw new SdkException("Search is not available for " . $this->getResourceName());
        }

        if (!is_array($query)) $query = array('query' => $query);

        $url = $this->generateUrl($query, 'search');

        return $this->get(array(), $url);
    }
public function search($query)
    {
        if (!$this->searchEnabled) {
            throw new SdkException("Search is not available for " . $this->getResourceName());
        }

        if (!is_array($query)) $query = array('query' => $query);

        $url = $this->generateUrl($query, 'search');

        return $this->get(array(), $url);
    }
public function search ( $ query ) { if ( ! $ this -> searchEnabled ) { throw new SdkException ( "Search is not available for " . $ this -> getResourceName ( ) ) ; } if ( ! is_array ( $ query ) ) $ query = array ( 'query' => $ query ) ; $ url = $ this -> generateUrl ( $ query , 'search' ) ; return $ this -> get ( array ( ) , $ url ) ; }
Search within the resouce

@param mixed $query

@throws SdkException if search is not enabled for the resouce

@return array
Search within the resouce