public function send($url, $curled = true)
    {
        $this->setUrl($url);

        $result = ($this->isCurlExists() && $curled === true)
            ? $this->curl()
            : file_get_contents($this->url);

        return $this->checkResult($result) ? $result : '{}';
    }
public function send($url, $curled = true)
    {
        $this->setUrl($url);

        $result = ($this->isCurlExists() && $curled === true)
            ? $this->curl()
            : file_get_contents($this->url);

        return $this->checkResult($result) ? $result : '{}';
    }
public function send ( $ url , $ curled = true ) { $ this -> setUrl ( $ url ) ; $ result = ( $ this -> isCurlExists ( ) && $ curled === true ) ? $ this -> curl ( ) : file_get_contents ( $ this -> url ) ; return $ this -> checkResult ( $ result ) ? $ result : '{}' ; }
Run the request and get response.

@param  string  $url
@param  bool    $curled

@return string
Run the request and get response .