I am trying to create a search using the new API1.1 twitter. The feedback I'm getting with the search query is:
stdClass Object ( [statuses] => Array ( [0] => stdClass Object ( [metadata] => stdClass Object ( [result_type] => recent [iso_language_code] => en ) [created_at] => Thu Jul 25 18:47:29 +0000 2013 [id] => 3.6047138122329E+17 [id_str] => 360471381223288832 [text] => RT @mccv: Satan's Salad Spinner #freebandnames [source] => Twitter for Android [truncated] => [in_reply_to_status_id] => [in_reply_to_status_id_str] => [in_reply_to_user_id] => [in_reply_to_user_id_str] => [in_reply_to_screen_name] => [user] => stdClass Object ( [id] => 16124537 [id_str] => 16124537 [name] => Carlos A. Becker [screen_name] => caarlos0 [location] => Joinville - SC [description]
And to try to show the results I am trying:
<span class="timestamp tw_timestamp">'.date('d M / H:i',strtotime($tweet->created_at)).'</span> **--> Show OK**
<span class="username tw_username">@'.$tweet->screen_name.'</span> **--> Not OK**
In the second example I get the following error: Notice: Undefined property: stdClass::$screen_name
Can you help me please.
Thank you.