Abraham\TwitterOAuth\TwitterOAuth::http PHP Method

http() private method

private http ( string $method, string $host, string $path, array $parameters ) : array | object
$method string
$host string
$path string
$parameters array
return array | object
    private function http($method, $host, $path, array $parameters)
    {
        $this->resetLastResponse();
        $url = sprintf('%s/%s/%s.json', $host, self::API_VERSION, $path);
        $this->response->setApiPath($path);
        $result = $this->oAuthRequest($url, $method, $parameters);
        $response = JsonDecoder::decode($result, $this->decodeJsonAsArray);
        $this->response->setBody($response);
        return $response;
    }