From: Ken-ichi Mito Date: Fri, 12 Jul 2013 13:43:52 +0000 (+0900) Subject: FIX: $res->{results} has changed to $res->{statuses} on API v1.1 X-Git-Url: http://lab.mitty.jp/git/?a=commitdiff_plain;h=90f8850f50e046f722cf8516b0afc1c07899b3f6;p=lab.git FIX: $res->{results} has changed to $res->{statuses} on API v1.1 --- 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);