From 90f8850f50e046f722cf8516b0afc1c07899b3f6 Mon Sep 17 00:00:00 2001 From: Ken-ichi Mito Date: Fri, 12 Jul 2013 22:43:52 +0900 Subject: [PATCH] FIX: $res->{results} has changed to $res->{statuses} on API v1.1 --- Dev/twitter/twitterbot.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dev/twitter/twitterbot.pl b/Dev/twitter/twitterbot.pl index f33837b..4606d95 100755 --- a/Dev/twitter/twitterbot.pl +++ b/Dev/twitter/twitterbot.pl @@ -220,8 +220,8 @@ sub or_search { ); } VERBOSE and warn Dumper($res); - if ($res->{results}) { - foreach my $tweet (@{$res->{results}}) { + if ($res->{statuses}) { + foreach my $tweet (@{$res->{statuses}}) { my $res = $bot->show_status($tweet->{id}); VERBOSE and warn Dumper($res); -- 1.7.9.5