protected function _doRequest($method, $uri, $options)
    {
        // For Guzzle5 we cannot have any options that are not pre-defined,
        // so instead we put it in the config array
        if (isset($options[self::OPT_VIDEO_MANAGER_ID])) {
            $options['config'][self::OPT_VIDEO_MANAGER_ID] = $options[self::OPT_VIDEO_MANAGER_ID];
            unset($options[self::OPT_VIDEO_MANAGER_ID]);
        }

        $request = $this->httpClient->createRequest($method, $uri, $options);

        return $this->httpClient->send($request);
    }
protected function _doRequest($method, $uri, $options)
    {
        // For Guzzle5 we cannot have any options that are not pre-defined,
        // so instead we put it in the config array
        if (isset($options[self::OPT_VIDEO_MANAGER_ID])) {
            $options['config'][self::OPT_VIDEO_MANAGER_ID] = $options[self::OPT_VIDEO_MANAGER_ID];
            unset($options[self::OPT_VIDEO_MANAGER_ID]);
        }

        $request = $this->httpClient->createRequest($method, $uri, $options);

        return $this->httpClient->send($request);
    }
protected function _doRequest ( $ method , $ uri , $ options ) { // For Guzzle5 we cannot have any options that are not pre-defined, // so instead we put it in the config array if ( isset ( $ options [ self :: OPT_VIDEO_MANAGER_ID ] ) ) { $ options [ 'config' ] [ self :: OPT_VIDEO_MANAGER_ID ] = $ options [ self :: OPT_VIDEO_MANAGER_ID ] ; unset ( $ options [ self :: OPT_VIDEO_MANAGER_ID ] ) ; } $ request = $ this -> httpClient -> createRequest ( $ method , $ uri , $ options ) ; return $ this -> httpClient -> send ( $ request ) ; }
Guzzle5 Client implementation for making HTTP requests with
the appropriate options.

@param string $method
@param string $uri
@param array  $options

@return \GuzzleHttp\Message\ResponseInterface
Guzzle5 Client implementation for making HTTP requests with the appropriate options .