Changeset e960958 in lab.git for Dev/twitter/update_timeline.pl
- Timestamp:
- Jun 21, 2013 3:48:34 PM (11 years ago)
- Branches:
- master
- Children:
- 0f8acb5
- Parents:
- a5b6bf1
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Dev/twitter/update_timeline.pl
ra5b6bf1 re960958 10 10 # You can catch and process these exceptions by using eval blocks and testing $@ 11 11 ## from http://search.cpan.org/perldoc?Net::Twitter::Lite#ERROR_HANDLING 12 use Net::Twitter::Lite ;12 use Net::Twitter::Lite::WithAPIv1_1; 13 13 use FindBin qw($Bin); 14 14 use YAML::Tiny; … … 86 86 87 87 sub login { 88 # make Net::Twitter::Lite object and login88 # make Net::Twitter::Lite::WithAPIv1_1 object and login 89 89 # param => hash object of configration 90 # ret => Net::Twitter::Lite object90 # ret => Net::Twitter::Lite::WithAPIv1_1 object 91 91 92 92 my $conf = shift @_; 93 93 94 my $bot = Net::Twitter::Lite ->new(94 my $bot = Net::Twitter::Lite::WithAPIv1_1->new( 95 95 consumer_key => $conf->{consumer_key}, 96 96 consumer_secret => $conf->{consumer_secret},
Note: See TracChangeset
for help on using the changeset viewer.