* add legacy_lists_api => 0 to new()
authormitty <mitty@7d2118f6-f56c-43e7-95a2-4bb3031d96e7>
Sun, 23 Sep 2012 03:58:48 +0000 (03:58 +0000)
committermitty <mitty@7d2118f6-f56c-43e7-95a2-4bb3031d96e7>
Sun, 23 Sep 2012 03:58:48 +0000 (03:58 +0000)
git-svn-id: https://lab.mitty.jp/svn/lab/trunk@166 7d2118f6-f56c-43e7-95a2-4bb3031d96e7

Dev/twitter/dump_timeline.pl
Dev/twitter/show_status.pl
Dev/twitter/twitterbot.pl
Dev/twitter/update_timeline.pl

index e800ac7..d7b2058 100755 (executable)
@@ -142,6 +142,7 @@ sub login {
     my $bot = Net::Twitter::Lite->new(
         consumer_key    => $conf->{consumer_key},
         consumer_secret => $conf->{consumer_secret},
+        legacy_lists_api => 0,
     );
     
     $bot->access_token($conf->{access_token});
index 22fa3d0..ee45ace 100755 (executable)
@@ -12,7 +12,9 @@ use utf8;
 use Net::Twitter::Lite;
 use Data::Dumper;
 
-my $bot = Net::Twitter::Lite->new;
+my $bot = Net::Twitter::Lite->new(
+    legacy_lists_api => 0,
+);
 
 my $dump;
 if (defined $ARGV[0] and $ARGV[0] eq "-d") {
index ae37ea6..bb7baa0 100755 (executable)
@@ -178,6 +178,7 @@ sub login {
     my $bot = Net::Twitter::Lite->new(
         consumer_key    => $conf->{consumer_key},
         consumer_secret => $conf->{consumer_secret},
+        legacy_lists_api => 0,
     );
     
     $bot->access_token($conf->{access_token});
index 1afcdf4..633db89 100755 (executable)
@@ -94,6 +94,7 @@ sub login {
     my $bot = Net::Twitter::Lite->new(
         consumer_key    => $conf->{consumer_key},
         consumer_secret => $conf->{consumer_secret},
+        legacy_lists_api => 0,
     );
     
     $bot->access_token($conf->{access_token});