Twitter from command line
+
Par Remi le mercredi 11 novembre 2009, 11:43 - Développement - Lien permanent
Looking at the llaumgui script, I noticed the feature of changing twitter status from command line. As a PHP enthusiast, I have look for such a tool.
So, I look in the available PEAR libraries. And I found it.
I've just build some new RPM which are available in remi repository.
- php-pear-Services-Twitter 0.4.0 beta
- php-pear-Net-URL2 0.3.0 beta
- php-pear-HTTP-Request2 0.4.1 alpha
- php-pear-HTTP-OAuth 0.1.4 alpha
As the status (alpha/beta) is not stable enough, I'm not yet thinking of a Fedora review .
For testing purpose, I wrote a little script.
Installation :
yum --enablerepo=remi install \
php-pear-Console-Getargs \
php-pear-Services-Twitter
Download the script : Mini Twitter Command Line Interface (see the Sources)
Example :
$ twit -u UserName -p secret
Status = sleeps
$ twit -u UserName -p secret -s "works"
Status = works
Yes, I know, this is minimal, just to check the library works.
P.S.1 I notice a bug on php-pear-PEAR-Command-Packaging, I should work on.
P.S.2 if you want it, my twitter.
Commentaires
This entry is deprecated, see Twitter from command line