Share Pictures on GNUsocial from CLI

As some terminal guys requested, there is an easy way to share media content on Quitter from command line! In fact, you can upload any kind of file supported.


This goes into ~/.bashrc
replace user, password and node domain with yours
function quitterimg() { echo 'Message: ' ; read message ; curl -u user:passwd -F "media=@$1" -F "status=$message" https://quitter.im/api/statuses/update.xml --write-out %{http_code} --silent --output /dev/null; }
End of ~/.bashrc edit

Usage
quitterimg cutepuppy.jpg
Message: So cute!
200
If posted, it should return 200 status code

Did you enjoy this post and find it valuable?

Tip the author! Don't know what Bitcoin is yet?

1Mojitovwnpokdo8uLXvG93pEhBF6MNFoo

Tagged as: ,