Hi,

I'm having trouble trying to format the response when I request the
last 1 status using statusesUserTimeline().

I am using the http://classes.verkoyen.eu/twitter_oauth class. When I
request the status it provides lots of information about the the user
who posted the status (which I don't want, I just purely want the
status.)

The output being provided is:

array(1) { [0]=> array(19) { ["in_reply_to_user_id"]=> NULL
["truncated"]=> bool(false) ["text"]=> string(12) "Happy
Easter" ["id_str"]=> string(17) "6218293562233088" ["geo"]=> NULL
["retweet_count"]=> int(0) ["favorited"]=> bool(false)
["in_reply_to_screen_name"]=> NULL ["source"]=> string(73) "Apex Web
Studio" ["created_at"]=> string(30) "Sun Apr 24 15:55:37 +0000
2011" ["in_reply_to_status_id_str"]=> NULL ["contributors"]=> NULL
["retweeted"]=> bool(false) ["in_reply_to_user_id_str"]=> NULL
["in_reply_to_status_id"]=> NULL ["user"]=> array(2) { ["id_str"]=>
string(8) "6218293562233088" ["id"]=> string(8) "6218293562233088" }
["id"]=> string(17) "62182917585113088" ["place"]=> NULL
["coordinates"]=> NULL } }

Please could you tell me how to format it so I can only get out the
status update saying "Happy Easter", I have tried using echo
($response["text"]); and string(12) but it says the index text doesn't
exist.

Your help would be appreciated.

Cheers,

Ian

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk

Reply via email to