Changeset e960958 in lab.git for Dev/twitter/dump_timeline.pl


Ignore:
Timestamp:
Jun 21, 2013 3:48:34 PM (11 years ago)
Author:
Ken-ichi Mito <mitty@…>
Branches:
master
Children:
0f8acb5
Parents:
a5b6bf1
Message:

use Net::Twitter::Lite::WithAPIv1_1 instead of Net::Twitter::Lite

  • s/Net::Twitter::Lite/Net::Twitter::Lite::WithAPIv1_1/g;
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Dev/twitter/dump_timeline.pl

    ra5b6bf1 re960958  
    1010# You can catch and process these exceptions by using eval blocks and testing $@ 
    1111## from http://search.cpan.org/perldoc?Net::Twitter::Lite#ERROR_HANDLING 
    12 use Net::Twitter::Lite; 
     12use Net::Twitter::Lite::WithAPIv1_1; 
    1313use FindBin qw($Bin); 
    1414use YAML::Tiny; 
     
    134134 
    135135sub login { 
    136     # make Net::Twitter::Lite object and login 
     136    # make Net::Twitter::Lite::WithAPIv1_1 object and login 
    137137    #   param   => hash object of configration 
    138     #   ret     => Net::Twitter::Lite object 
     138    #   ret     => Net::Twitter::Lite::WithAPIv1_1 object 
    139139     
    140140    my $conf = shift @_; 
    141141     
    142     my $bot = Net::Twitter::Lite->new( 
     142    my $bot = Net::Twitter::Lite::WithAPIv1_1->new( 
    143143        consumer_key    => $conf->{consumer_key}, 
    144144        consumer_secret => $conf->{consumer_secret}, 
Note: See TracChangeset for help on using the changeset viewer.