Changeset e960958 in lab.git for Dev/twitter/dump_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/dump_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; … … 134 134 135 135 sub login { 136 # make Net::Twitter::Lite object and login136 # make Net::Twitter::Lite::WithAPIv1_1 object and login 137 137 # param => hash object of configration 138 # ret => Net::Twitter::Lite object138 # ret => Net::Twitter::Lite::WithAPIv1_1 object 139 139 140 140 my $conf = shift @_; 141 141 142 my $bot = Net::Twitter::Lite ->new(142 my $bot = Net::Twitter::Lite::WithAPIv1_1->new( 143 143 consumer_key => $conf->{consumer_key}, 144 144 consumer_secret => $conf->{consumer_secret},
Note: See TracChangeset
for help on using the changeset viewer.