Am trying to get users latest tweet using Oauth user timeline.json, with curl am getting following json as output.
Array(
[headers] => Array
(
[cache_control] => no-cache, no-store, must-revalidate, pre-check=0, post-check=0
[content_encoding] => gzip
[content_length] => 994
[content_type] => application/json;charset=utf-8
[date] => Thu, 13 Jun 2013 11:18:42 GMT
[expires] => Tue, 31 Mar 1981 05:00:00 GMT
[last_modified] => Thu, 13 Jun 2013 11:18:42 GMT
[pragma] => no-cache
[server] => tfe
[set_cookie] => guest_id=v1%3A137112232264280663; Domain=.twitter.com; Path=/; Expires=Sat, 13-Jun-2015 11:18:42 UTC
[status] => 200 OK
[strict_transport_security] => max-age=631138519
[x_access_level] => read-write
[x_frame_options] => SAMEORIGIN
[x_rate_limit_limit] => 180
[x_rate_limit_remaining] => 173
[x_rate_limit_reset] => 1371122461
[x_transaction] => e6f98fe18e6685d4
[x_xss_protection] => 1; mode=block
)
[code] => 200
[response] => [{"created_at":"Sun Jun 17 22:20:21 +0000 2012","id":214482643457286144,"id_str":"214482643457286144","text":"Fail, just tried to go through the drive-thru on my Skateboard... No service ... FML.","source":"\u003ca href=\"http:\/\/twitter.com\/download\/android\" rel=\"nofollow\"\u003eTwitter for Android\u003c\/a\u003e","truncated":false,"in_reply_to_status_id":null,"in_reply_to_status_id_str":null,"in_reply_to_user_id":null,"in_reply_to_user_id_str":null,"in_reply_to_screen_name":null,"user":{"id":157224868,"id_str":"157224868","name":"Antione Lee Frye","screen_name":"Antione_Frye","location":"DC","description":"I started skating at one. So that's 15 years now. I'm goofy, in skating and in life haha. Fun all around. Love to do random stuff to mess with people =D.","url":"http:\/\/t.co\/9vDcqFdUz2","entities":{"url":{"urls":[{"url":"http:\/\/t.co\/9vDcqFdUz2","expanded_url":"http:\/\/youtube.com\/user\/fryegryyyy","display_url":"youtube.com\/user\/fryegryyyy","indices":[0,22]}]},"description":{"urls":[]}},"protected":false,"followers_count":39,"friends_count":46,"listed_count":0,"created_at":"Sat Jun 19 05:45:28 +0000 2010","favourites_count":0,"utc_offset":-18000,"time_zone":"Quito","geo_enabled":false,"verified":false,"statuses_count":642,"lang":"en","contributors_enabled":false,"is_translator":false,"profile_background_color":"C0DEED","profile_background_image_url":"http:\/\/a0.twimg.com\/images\/themes\/theme1\/bg.png","profile_background_image_url_https":"https:\/\/si0.twimg.com\/images\/themes\/theme1\/bg.png","profile_background_tile":false,"profile_image_url":"http:\/\/a0.twimg.com\/profile_images\/1803514853\/8pA2CCuK_normal","profile_image_url_https":"https:\/\/si0.twimg.com\/profile_images\/1803514853\/8pA2CCuK_normal","profile_link_color":"0084B4","profile_sidebar_border_color":"C0DEED","profile_sidebar_fill_color":"DDEEF6","profile_text_color":"333333","profile_use_background_image":true,"default_profile":true,"default_profile_image":false,"following":null,"follow_request_sent":false,"notifications":null},"geo":null,"coordinates":null,"place":null,"contributors":null,"retweet_count":0,"favorite_count":1,"entities":{"hashtags":[],"symbols":[],"urls":[],"user_mentions":[]},"favorited":false,"retweeted":false,"lang":"en"}]
[info] => Array (
[url] => https://api.twitter.com/1.1/statuses/user_timeline.json?count=1&include_entities=1&include_rts=1&screen_name=Antione_Frye
[content_type] => application/json;charset=utf-8
[http_code] => 200
[header_size] => 749
[request_size] => 569
[filetime] => -1
[ssl_verify_result] => 0
[redirect_count] => 0
[total_time] => 1.123
[namelookup_time] => 0.046
[connect_time] => 0.296
[pretransfer_time] => 0.842
[size_upload] => 0
[size_download] => 994
[speed_download] => 885
[speed_upload] => 0
[download_content_length] => 994
[upload_content_length] => 0
[starttransfer_time] => 1.123
[redirect_time] => 0
[certinfo] => Array (
)
[primary_ip] => 199.59.148.20
[primary_port] => 443
[local_ip] => 127.0.0.1
[local_port] => 60353
[redirect_url] =>
)
[error] =>
[errno] => 0
)
while decode am getting null. How can i get valid json values, is anybody know kindly help me.
regards, John