protected function sendRequest()
    {
        // Get AccessManager.
        $accessManager = $this->getAccessManager();

        // Make a Watson Bridge.
        $watsonBridge = $this->makeBridge();

        // Get Url We post to Watson to Get Profile.
        $postUrl = $accessManager->getProfileResourcePath();

        // Append query string if needed
        if (! empty($this->getQuery())) {
            $postUrl .= '?'.$this->getQuery();
        }

        // Cross the Bridge and return the Response.
        return $watsonBridge->post($postUrl, $this->getContainer()->getContentsForRequest());
    }
protected function sendRequest()
    {
        // Get AccessManager.
        $accessManager = $this->getAccessManager();

        // Make a Watson Bridge.
        $watsonBridge = $this->makeBridge();

        // Get Url We post to Watson to Get Profile.
        $postUrl = $accessManager->getProfileResourcePath();

        // Append query string if needed
        if (! empty($this->getQuery())) {
            $postUrl .= '?'.$this->getQuery();
        }

        // Cross the Bridge and return the Response.
        return $watsonBridge->post($postUrl, $this->getContainer()->getContentsForRequest());
    }
protected function sendRequest ( ) { // Get AccessManager. $ accessManager = $ this -> getAccessManager ( ) ; // Make a Watson Bridge. $ watsonBridge = $ this -> makeBridge ( ) ; // Get Url We post to Watson to Get Profile. $ postUrl = $ accessManager -> getProfileResourcePath ( ) ; // Append query string if needed if ( ! empty ( $ this -> getQuery ( ) ) ) { $ postUrl .= '?' . $ this -> getQuery ( ) ; } // Cross the Bridge and return the Response. return $ watsonBridge -> post ( $ postUrl , $ this -> getContainer ( ) -> getContentsForRequest ( ) ) ; }
Send API Request to Watson and get Response.

@return \GuzzleHttp\Psr7\Response
Send API Request to Watson and get Response .