Hi all, Since RestfulService::Connect has been depreciated, can someone point out what I am doing wrong here?
Here is my code, I get no response. But when I used ->Connect() instead of ->Request(), it worked.
Can someone point out what I am missing?
The $url = a twitter user feed.
function doCall($url = null, $requireAuth = false,$params = null){
try{
$twitter = new RestfulService( $url );
if($params)
$twitter->setQueryString($params);
$conn = $twitter->request();
$xml = @simplexml_load_string($conn);
if($xml == false){
return false;
}else{ return $xml;}
}
catch(Exception $e){
return false;
}
}