private function sendRequest($path, $requestBody, $options, $method)
    {
        $url = $this->instanceURLRepo->get();
        $url .= '/'.trim($path, "/\t\n\r\0\x0B");

        $options['method'] = $method;
        if (!empty($requestBody)) {
            $options['body'] = $requestBody;
        }

        return $this->request($url, $options);
    }
private function sendRequest($path, $requestBody, $options, $method)
    {
        $url = $this->instanceURLRepo->get();
        $url .= '/'.trim($path, "/\t\n\r\0\x0B");

        $options['method'] = $method;
        if (!empty($requestBody)) {
            $options['body'] = $requestBody;
        }

        return $this->request($url, $options);
    }
private function sendRequest ( $ path , $ requestBody , $ options , $ method ) { $ url = $ this -> instanceURLRepo -> get ( ) ; $ url .= '/' . trim ( $ path , "/\t\n\r\0\x0B" ) ; $ options [ 'method' ] = $ method ; if ( ! empty ( $ requestBody ) ) { $ options [ 'body' ] = $ requestBody ; } return $ this -> request ( $ url , $ options ) ; }
Prepares options and sends the request.

@param $path
@param $requestBody
@param $options
@param $method

@return mixed
Prepares options and sends the request .