public function request($url, array $params = [])
    {
        $curl = new Curl();
        $query = $this->buildQuery($params);
        $curl->setOptions($this->url . $url, $query, $this->port);
        $response = $curl->exec();
        $this->setResponse($response);
        $this->setErrors($response);
        return $this;
    }
public function request($url, array $params = [])
    {
        $curl = new Curl();
        $query = $this->buildQuery($params);
        $curl->setOptions($this->url . $url, $query, $this->port);
        $response = $curl->exec();
        $this->setResponse($response);
        $this->setErrors($response);
        return $this;
    }
public function request ( $ url , array $ params = [ ] ) { $ curl = new Curl ( ) ; $ query = $ this -> buildQuery ( $ params ) ; $ curl -> setOptions ( $ this -> url . $ url , $ query , $ this -> port ) ; $ response = $ curl -> exec ( ) ; $ this -> setResponse ( $ response ) ; $ this -> setErrors ( $ response ) ; return $ this ; }
Send a curl request

@param  string $url   The url API
@param  array $params The query params
@return \Octopush\Client
Send a curl request