php - json-twitter list of array - retrieve actual tweet -


this question has answer here:

array (     [statuses] => array         (             [0] => array                 (                     [metadata] => array                         (                             [result_type] => recent                             [iso_language_code] => en                         )                      [created_at] => wed jul 30 17:15:35 +0000 2013                     [id] => 3626225823751905                     [id_str] => 3626225875190528                     [text] =>where you? 

                     [user] => array                         (                             [id] => 192994                             [id_str] => 192994                             [name] => stupido                             [screen_name] => stupido                             [location] =>                              [description] =>i'm i'm                             [url] => http://t.co/xehevced                             [entities] => array                                 (                                     [url] => array                                         (                                             [urls] => array                                                 (                                                     [0] => array                                                         (                                                             [url] => http://t.co/xehevced 

so, have 20 recent tweets - json_decode() : but, how can retrieve text , url? nested arrays.

can 1 ?

are using abraham twitteroauth?

try this:

$parameters = array('screen_name' => 'twitter' /* screen name */, 'result_type' => 'recent', 'count' => '20' /* limit */  );  $content = $connection->get("statuses/user_timeline", $parameters);  for($i = 0; $i < 20 /* limit */; ++$i) {  echo $content[$i]->text . $content[$i]->user->url . "<hr />";  } 

Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

css - Firefox for ubuntu renders wrong colors -