Description: Quickly add a 'what are you doing' line to twitter from within KDE.
INSTALL: Save the script to a directory in your PATH (run 'echo $PATH' to find the places in your path). Edit the script and replace {username} and {password} with your twitter credentials. Run this script from anywhere within KDE. Easiest is to rightclick on your desktop and choose "New » Shortcut to application", and then point it to the twitter.sh script.
To allow crossposting to other micro-blogging services that also use a similar API like Twitter, one could try to use the script like this:
----
#!/bin/bash
message=`kdialog --inputbox 'What are you doing right now?'`
curl -u Twitter_USERNAME:PASSWORD -s -F status="$message" http://twitter.com/statuses/update.xml http://twitter.com/account/end_session
curl -u Identi.ca_USERNAME:PASSWORD -s -F status="$message" http://identi.ca/api/statuses/update.xml http://identi.ca/account/end_session
----
This script sends the same message to two services. In this case it is Twitter - and the open source alternative http://identi.ca as well.
identi.ca is based on the Laconica software ( http://laconi.ca/ ) - and this script will similar work with every service that runs Laconica.
Have fun!
P.S.
The most missing feature for me is a sign that the limit of letters (140 signs) has been reached... Everything else works very well just with kdialog and curl!
Ratings & Comments
2 Comments
To allow crossposting to other micro-blogging services that also use a similar API like Twitter, one could try to use the script like this: ---- #!/bin/bash message=`kdialog --inputbox 'What are you doing right now?'` curl -u Twitter_USERNAME:PASSWORD -s -F status="$message" http://twitter.com/statuses/update.xml http://twitter.com/account/end_session curl -u Identi.ca_USERNAME:PASSWORD -s -F status="$message" http://identi.ca/api/statuses/update.xml http://identi.ca/account/end_session ---- This script sends the same message to two services. In this case it is Twitter - and the open source alternative http://identi.ca as well. identi.ca is based on the Laconica software ( http://laconi.ca/ ) - and this script will similar work with every service that runs Laconica. Have fun! P.S. The most missing feature for me is a sign that the limit of letters (140 signs) has been reached... Everything else works very well just with kdialog and curl!
Hey their I love the Idea of this script but i can't get it to work. Does this look right to you? Quote:
#!/bin/bash
curl -u {email@email.com}:{passwrod} -s -F status="`kdialog --inputbox 'What are you doing?'`" http://twitter.com/statuses/update.xml
You can check my Twitter account here :)
http://twitter.com/TerranceKennedy
Ps:I do have Curl installed