Created
July 10, 2015 11:28
-
-
Save matoken/40d5ee099496e9079ada to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
use Encode; | |
use utf8; | |
use Net::Twitter; | |
my $twit = Net::Twitter->new( | |
traits => ['API::RESTv1_1'], | |
consumer_key => '', | |
consumer_secret => '', | |
access_token => '', | |
access_token_secret => '', | |
ssl => 1, | |
); | |
exit $twit->update( decode_utf8($_) ) for join(' ', @ARGV ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Twitter に引数を投稿するscript
Debian だと
libnet-twitter-perl
の導入だけで行けるhttp://dev.twitter.com/ でconsumer_key/consumer_secret/access_token/access_token_secret を入手して実行すれば動く
今でも動くけど2011年作で更新してないのでレガシーかも