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
Post a Comment