protected function getDataFromUrl($url)
    {
        $auth = $this->getAuthenticationObject();
        
        $process = curl_init($url);
        curl_setopt($process, CURLOPT_HEADER, 0);
        // setting the authentication header
        curl_setopt($process, CURLOPT_HTTPHEADER, array(
            "Authorization: " . $auth->getTokenType() . " " . $auth->getAccessToken()
        ));
        curl_setopt($process, CURLOPT_TIMEOUT, 30);
        curl_setopt($process, CURLOPT_RETURNTRANSFER, TRUE);
        $returnData = curl_exec($process);
        curl_close($process);
        
        return $returnData;
    }
protected function getDataFromUrl($url)
    {
        $auth = $this->getAuthenticationObject();
        
        $process = curl_init($url);
        curl_setopt($process, CURLOPT_HEADER, 0);
        // setting the authentication header
        curl_setopt($process, CURLOPT_HTTPHEADER, array(
            "Authorization: " . $auth->getTokenType() . " " . $auth->getAccessToken()
        ));
        curl_setopt($process, CURLOPT_TIMEOUT, 30);
        curl_setopt($process, CURLOPT_RETURNTRANSFER, TRUE);
        $returnData = curl_exec($process);
        curl_close($process);
        
        return $returnData;
    }
protected function getDataFromUrl ( $ url ) { $ auth = $ this -> getAuthenticationObject ( ) ; $ process = curl_init ( $ url ) ; curl_setopt ( $ process , CURLOPT_HEADER , 0 ) ; // setting the authentication header curl_setopt ( $ process , CURLOPT_HTTPHEADER , array ( "Authorization: " . $ auth -> getTokenType ( ) . " " . $ auth -> getAccessToken ( ) ) ) ; curl_setopt ( $ process , CURLOPT_TIMEOUT , 30 ) ; curl_setopt ( $ process , CURLOPT_RETURNTRANSFER , TRUE ) ; $ returnData = curl_exec ( $ process ) ; curl_close ( $ process ) ; return $ returnData ; }
get data from url

@param string $url
@return mixed raw url data
get data from url