php - codebird array showing tweets using api -


ok, using codebird read , write tweets using php. it's twitter account protected need use api display tweets on our private network. able make tweets without problem, it's retrieving our own tweets i'm struggling with.

$reply = (array) $cb->statuses_hometimeline(); print_r($reply); 

this gives output of (this first 1 in array)

array ( [0] => stdclass object ( [created_at] => thu feb 06 09:08:43 +0000 2014 [id] => 431353751824134144 [id_str] => 431353751824134144 [text] => test 3 [source] => web [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] => 2292936619 [id_str] => 2292936619 [name] => jpress support [screen_name] => jpresssupport [location] => [description] => automated account letting know of issues. tweets made account not seen. thanks, johnston press it. [url] => [entities] => stdclass object ( [description] => stdclass object ( [urls] => array ( ) ) ) [protected] => 1 [followers_count] => 1 [friends_count] => 0 [listed_count] => 0 [created_at] => wed jan 15 16:11:20 +0000 2014 [favourites_count] => 0 [utc_offset] => 0 [time_zone] => casablanca [geo_enabled] => [verified] => [statuses_count] => 3 [lang] => en-gb [contributors_enabled] => [is_translator] => [is_translation_enabled] => [profile_background_color] => c0deed [profile_background_image_url] => http://abs.twimg.com/images/themes/theme1/bg.png [profile_background_image_url_https] => https://abs.twimg.com/images/themes/theme1/bg.png [profile_background_tile] => [profile_image_url] => http://pbs.twimg.com/profile_images/423490507906359297/t-ectyzw_normal.png [profile_image_url_https] => https://pbs.twimg.com/profile_images/423490507906359297/t-ectyzw_normal.png [profile_link_color] => 0084b4 [profile_sidebar_border_color] => c0deed [profile_sidebar_fill_color] => ddeef6 [profile_text_color] => 333333 [profile_use_background_image] => 1 [default_profile] => 1 [default_profile_image] => [following] => [follow_request_sent] => [notifications] => ) [geo] => [coordinates] => [place] => [contributors] => [retweet_count] => 0 [favorite_count] => 0 [entities] => stdclass object ( [hashtags] => array ( ) [symbols] => array ( ) [urls] => array ( ) [user_mentions] => array ( ) ) [favorited] => [retweeted] => [lang] => et ) 

however, if like

<? echo $reply[0]; ?> 

it gives no output. i'm guessing it's simple, can't work out, please can help, i'm needing bit @ [text] =>

sorted it!

$tweet1 = $reply[0]->text; 

Comments

Popular posts from this blog

python - Subclassed QStyledItemDelegate ignores Stylesheet -

java - HttpClient 3.1 Connection pooling vs HttpClient 4.3.2 -

SQL: Divide the sum of values in one table with the count of rows in another -