Changeset e960958 in lab.git for Dev/twitter/update_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/update_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; 
     
    8686 
    8787sub login { 
    88     # make Net::Twitter::Lite object and login 
     88    # make Net::Twitter::Lite::WithAPIv1_1 object and login 
    8989    #   param   => hash object of configration 
    90     #   ret     => Net::Twitter::Lite object 
     90    #   ret     => Net::Twitter::Lite::WithAPIv1_1 object 
    9191     
    9292    my $conf = shift @_; 
    9393     
    94     my $bot = Net::Twitter::Lite->new( 
     94    my $bot = Net::Twitter::Lite::WithAPIv1_1->new( 
    9595        consumer_key    => $conf->{consumer_key}, 
    9696        consumer_secret => $conf->{consumer_secret}, 
Note: See TracChangeset for help on using the changeset viewer.