Changeset e960958 in lab.git for Dev/twitter/twitterbot.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/twitterbot.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; … … 170 170 171 171 sub login { 172 # make Net::Twitter::Lite object and login172 # make Net::Twitter::Lite::WithAPIv1_1 object and login 173 173 # param => hash object of configration 174 # ret => Net::Twitter::Lite object174 # ret => Net::Twitter::Lite::WithAPIv1_1 object 175 175 176 176 my $conf = shift @_; 177 177 178 my $bot = Net::Twitter::Lite ->new(178 my $bot = Net::Twitter::Lite::WithAPIv1_1->new( 179 179 consumer_key => $conf->{consumer_key}, 180 180 consumer_secret => $conf->{consumer_secret}, … … 190 190 sub or_search { 191 191 # search tweets containing keywords 192 # param => Net::Twitter::Lite object, ArrayRef of keywords, since_id192 # param => Net::Twitter::Lite::WithAPIv1_1 object, ArrayRef of keywords, since_id 193 193 # ret => HashRef of status_id (timeline order is destroyed) 194 194 # or undef (none is found) … … 254 254 sub mentions_ids { 255 255 # return status_ids mentioned to me 256 # param => Net::Twitter::Lite object, since_id256 # param => Net::Twitter::Lite::WithAPIv1_1 object, since_id 257 257 # ret => HashRef of status_id (timeline order is destroyed) 258 258 # or undef (none is found)
Note: See TracChangeset
for help on using the changeset viewer.