--
M. Edward (Ed) Borasky
http://borasky-research.net http://twitter.com/znmeb
"A mathematician is a device for turning coffee into theorems." - Paul Erdos
Quoting Cameron Kaiser <spec...@floodgap.com>:
Thank you for replying.. I looked at your code and was very quickly
overwhelmed.
I can (well, used to) update using three lines:
$twitter_tweet = "tweet out something here";
$twitter_api = 'curl --basic --user name:password --data status="'.
$twitter_tweet.'" http://twitter.com/statuses/update.xml > /dev/null
2> /dev/null';
system ("$twitter_api");
If that's all you really want, and you want to do this with a simple
black-box tool and/or with Perl, then you have three options, from my
perspective:
1. <plug class="shameless">
Once you have your app key/secret and user token/secret (TTYtter can
step you through this), then you can simply post updates with
ttytter -status="Your update"
TTYtter just needs cURL, which you seem to already have. It has its own
hash and signing algorithms built-in.
</plug>
2. Decklin's curlicue tool is a wrapper around cURL with all of the OAuth
dance. You will need OpenSSL, which is free, for the hash and signing
algorithms. Then you can use something reasonably similar to your code
above.
3. You can use Net::Twitter and drive it yourself. CPAN will help you
download the various dependencies it has. Net::Twitter is simple to use,
although it is completely different than what you already have.
Or Net::Twitter::Lite - fewer dependencies and slightly less
configurable but does oAuth and all the Search and REST API interfacing.
--
------------------------------------ personal:
http://www.cameronkaiser.com/ --
Cameron Kaiser * Floodgap Systems * www.floodgap.com * ckai...@floodgap.com
-- FORTUNE: The moon is in Venus' house. Shortly, there will be
planetoids. ---
--
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group:
http://groups.google.com/group/twitter-development-talk?hl=en
--
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group:
http://groups.google.com/group/twitter-development-talk?hl=en