private function sendRequest($request)
    {
        $response = $this->webclient->send($request);
        if (!$this->isLoggedIn($response)) {
            $this->webLogin();
            $response = $this->webclient->send($request);
        }

        if ($response->getStatusCode() == 500) {
            throw new YouHostingException("Unknown YouHosting Error");
        }

        return $response;
    }
private function sendRequest($request)
    {
        $response = $this->webclient->send($request);
        if (!$this->isLoggedIn($response)) {
            $this->webLogin();
            $response = $this->webclient->send($request);
        }

        if ($response->getStatusCode() == 500) {
            throw new YouHostingException("Unknown YouHosting Error");
        }

        return $response;
    }
private function sendRequest ( $ request ) { $ response = $ this -> webclient -> send ( $ request ) ; if ( ! $ this -> isLoggedIn ( $ response ) ) { $ this -> webLogin ( ) ; $ response = $ this -> webclient -> send ( $ request ) ; } if ( $ response -> getStatusCode ( ) == 500 ) { throw new YouHostingException ( "Unknown YouHosting Error" ) ; } return $ response ; }
Send the request away

@param Request $request
@return Response
@throws YouHostingException
Send the request away