Feeling Dumb
-
Hi Guys,
I am kind of new at this whole php stuff.
So after using the code in the proper template i get:
array(23) { ["created_at"]=> string(30) "Sat May 10 21:09:48 +0000 2014" ["id"]=> int(465237292630953984) ["id_str"]=> string(18) "465237292630953984" ["text"]=> string(66) "ook Michael Jackshond is zenuwachtig #ESF14 https://t.co/zxeybM0D3b" ["source"]=> string(84) "Twitter for Android" ["truncated"]=> bool(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"]=> array(2) { ["id"]=> int(29184348) ["id_str"]=> string(8) "29184348" } ["geo"]=> NULL ["coordinates"]=> NULL ["place"]=> NULL ["contributors"]=> NULL ["retweet_count"]=> int(0) ["favorite_count"]=> int(0) ["entities"]=> array(5) { ["hashtags"]=> array(1) { [0]=> array(2) { ["text"]=> string(5) "ESF14" ["indices"]=> array(2) { [0]=> int(37) [1]=> int(43) } } } ["symbols"]=> array(0) { } ["urls"]=> array(0) { } ["user_mentions"]=> array(0) { } ["media"]=> array(1) { [0]=> array(10) { ["id"]=> int(465237287941332994) ["id_str"]=> string(18) "465237287941332994" ["indices"]=> array(2) { [0]=> int(44) [1]=> int(66) } ["media_url"]=> string(46) "https://pbs.twimg.com/media/BnTa2TQCYAIdbsW.jpg" ["media_url_https"]=> string(47) "https://pbs.twimg.com/media/BnTa2TQCYAIdbsW.jpg" ["url"]=> string(22) "https://t.co/zxeybM0D3b" ["display_url"]=> string(26) "pic.twitter.com/zxeybM0D3b" ["expanded_url"]=> string(63) "https://twitter.com/gerkmulder/status/465237292630953984/photo/1" ["type"]=> string(5) "photo" ["sizes"]=> array(4) { ["small"]=> array(3) { ["w"]=> int(340) ["h"]=> int(601) ["resize"]=> string(3) "fit" } ["large"]=> array(3) { ["w"]=> int(579) ["h"]=> int(1024) ["resize"]=> string(3) "fit" } ["thumb"]=> array(3) { ["w"]=> int(150) ["h"]=> int(150) ["resize"]=> string(4) "crop" } ["medium"]=> array(3) { ["w"]=> int(579) ["h"]=> int(1024) ["resize"]=> string(3) "fit" } } } } } ["favorited"]=> bool(false) ["retweeted"]=> bool(false) ["possibly_sensitive"]=> bool(false) ["lang"]=> string(2) "nl" } array(22) { ["created_at"]=> string(30) "Sat May 10 21:00:19 +0000 2014" ["id"]=> int(465234903723175937) ["id_str"]=> string(18) "465234903723175937" ["text"]=> string(15) "Boobies! #ESF14" ["source"]=> string(84) "Twitter for Android" ["truncated"]=> bool(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"]=> array(2) { ["id"]=> int(29184348) ["id_str"]=> string(8) "29184348" } ["geo"]=> NULL ["coordinates"]=> NULL ["place"]=> NULL ["contributors"]=> NULL ["retweet_count"]=> int(0) ["favorite_count"]=> int(0) ["entities"]=> array(4) { ["hashtags"]=> array(1) { [0]=> array(2) { ["text"]=> string(5) "ESF14" ["indices"]=> array(2) { [0]=> int(9) [1]=> int(15) } } } ["symbols"]=> array(0) { } ["urls"]=> array(0) { } ["user_mentions"]=> array(0) { } } ["favorited"]=> bool(false) ["retweeted"]=> bool(false) ["lang"]=> string(2) "sl" } array(22) { ["created_at"]=> string(30) "Sat May 10 20:59:13 +0000 2014" ["id"]=> int(465234629130485760) ["id_str"]=> string(18) "465234629130485760" ["text"]=> string(56) "Talking loud and nasely is not singing, or is it? #ESF14" ["source"]=> string(84) "Twitter for Android" ["truncated"]=> bool(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"]=> array(2) { ["id"]=> int(29184348) ["id_str"]=> string(8) "29184348" } ["geo"]=> NULL ["coordinates"]=> NULL ["place"]=> NULL ["contributors"]=> NULL ["retweet_count"]=> int(0) ["favorite_count"]=> int(0) ["entities"]=> array(4) { ["hashtags"]=> array(1) { [0]=> array(2) { ["text"]=> string(5) "ESF14" ["indices"]=> array(2) { [0]=> int(50) [1]=> int(56) } } } ["symbols"]=> array(0) { } ["urls"]=> array(0) { } ["user_mentions"]=> array(0) { } } ["favorited"]=> bool(false) ["retweeted"]=> bool(false) ["lang"]=> string(2) "en" }
As a result, i have pasted the code:
<?php $tweets = getTweets('gerkmulder', 3); foreach($tweets as $tweet){ var_dump($tweet); } ?>
When i reverse the username and number the result is the same ??
What am i doing wrong?
https://www.ads-software.com/plugins/oauth-twitter-feed-for-developers/
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Feeling Dumb’ is closed to new replies.