public function search($query, $path = '', $limit = 1000, $deleted = false)
    {
        $call = 'search/' . $this->root . '/' . $this->encodePath($path);
        $params = array(
            'query' => $query,
            'file_limit' => ($limit < 1) ? 1 : (($limit > 1000) ? 1000 : (int) $limit),
            'include_deleted' => (int) $deleted,
        );
        $response = $this->fetch('GET', self::API_URL, $call, $params);
        return $response;
    }
public function search($query, $path = '', $limit = 1000, $deleted = false)
    {
        $call = 'search/' . $this->root . '/' . $this->encodePath($path);
        $params = array(
            'query' => $query,
            'file_limit' => ($limit < 1) ? 1 : (($limit > 1000) ? 1000 : (int) $limit),
            'include_deleted' => (int) $deleted,
        );
        $response = $this->fetch('GET', self::API_URL, $call, $params);
        return $response;
    }
public function search ( $ query , $ path = '' , $ limit = 1000 , $ deleted = false ) { $ call = 'search/' . $ this -> root . '/' . $ this -> encodePath ( $ path ) ; $ params = array ( 'query' => $ query , 'file_limit' => ( $ limit < 1 ) ? 1 : ( ( $ limit > 1000 ) ? 1000 : ( int ) $ limit ) , 'include_deleted' => ( int ) $ deleted , ) ; $ response = $ this -> fetch ( 'GET' , self :: API_URL , $ call , $ params ) ; return $ response ; }
Returns metadata for all files and folders that match the search query
@param mixed $query The search string. Must be at least 3 characters long
@param string $path The path to the folder you want to search in
@param integer $limit Maximum number of results to return (1-1000)
@param boolean $deleted Include deleted files/folders in the search
@return array
Returns metadata for all files and folders that match the search query