lib/RestAPI.php
public function analyzeBlob($text)
    {

        $config = Config::getInstance();
        $url = $config->getParams()['credentials']['url']
             . '/v2/profile';

        return $this->_worker->post(
            $url,
            array(
                'body' => $text,
                'headers' => array('Content-Type' => 'text/plain'),
            )
        );
    }
public function analyzeBlob($text)
    {

        $config = Config::getInstance();
        $url = $config->getParams()['credentials']['url']
             . '/v2/profile';

        return $this->_worker->post(
            $url,
            array(
                'body' => $text,
                'headers' => array('Content-Type' => 'text/plain'),
            )
        );
    }
public function analyzeBlob ( $ text ) { $ config = Config :: getInstance ( ) ; $ url = $ config -> getParams ( ) [ 'credentials' ] [ 'url' ] . '/v2/profile' ; return $ this -> _worker -> post ( $ url , array ( 'body' => $ text , 'headers' => array ( 'Content-Type' => 'text/plain' ) , ) ) ; }
Analayze a blob of text.
@param string $text The text to analyze
@return object Returns the response object of the Client library used.
Analayze a blob of text .