php - grabbing twitter info using API? -


how can grab twitter following, followers , listed info using twitter api php?

well, short of it..

$ch = curl_init("https://api.twitter.com/1/users/show.json?screen_name=username"); curl_setopt($ch, curlopt_returntransfer, true); curl_setopt($ch, curlopt_useragent, 'somehitn/3.2'); $ret = json_decode(curl_exec($ch)); curl_close($ch); unset($ch);  print_r($ret); 

just hitting other restful api.


Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -