source:
lab.git/twitter/twitbot.pl
@
8ac2029
Last change on this file since 8ac2029 was d200f4d, checked in by mitty <mitty@…>, 14 years ago | |
---|---|
|
|
File size: 307 bytes |
Rev | Line | |
---|---|---|
[d200f4d] | 1 | #!/usr/bin/perl |
2 | ||
3 | use strict; | |
4 | use warnings; | |
5 | use YAML::Tiny; | |
6 | use Net::Twitter; | |
7 | ||
8 | my $config = (YAML::Tiny->read('config.yml'))->[0]; | |
9 | my $twit = Net::Twitter->new(username => $config->{'username'}, password => $config->{'password'}); | |
10 | ||
11 | $twit->update('Perl から Twiitter を更新するテストですよー'); |
Note: See TracBrowser
for help on using the repository browser.