Post to GNU Social via terminal
Just made an alias to queet to my GnuSocial instance from bash
alias queet='function _queet() { echo -e status="$@" | curl -u user:passwd --data-binary @- https://gnusocial-url/api/statuses/update.xml; }; _queet'
posting is now just that simple:
peter@peanut:~$ queet Test-Queet via bash
Another option is to use the gasher-shellscript. It’s easy to setup and has lots of options like posting, replying or just reading the timeline…
peter@peanut:~$ gasher -t
Peter V. Beck [0]: Test-Queet via bash
Posted: Thu Mar 24 02:00:58 +0100 2016 by peter@pfoeh.li from api
Peter V. Beck [1]: Peter V. Beck deleted notice
{{tag:pfoeh.li,2016-03-24:noticeId=2540:objectType=note}}.
Posted: Thu Mar 24 01:49:42 +0100 2016 by peter@pfoeh.li from unknown