Following Eric's lead I setup a couple of more specific FreeBSD related twitter accounts using Twitter Feed to automatically publish the updates from RSS. The first account freebsdannounce consists of all the RSS feeds from the main www.freebsd.org website (most of which I added almost exactly one year ago). The second account freebsdblogs consists of the FreeBSD Planet combined RSS feed. If you want everything subscribe to Eric's main FreeBSD feed, but if you want only a subset of that content subscribe to one of my two more specific feeds.
Finally, I couldn't find a way to make simple updates to twitter from the base FreeBSD system command line so I created a patch for very basic HTTP POST support for fetch. Apply this patch, rebuild and reinstall libfetch(3) and fetch(1) and then you can update twitter from the command line (or send a simple POST request to other web services) with :
$ fetch -x status='Experimenting with Twitter API.' http://twitter.com/statuses/update.xml
fetch(1) will then prompt you for the HTTP authentication credentials of your twitter account.
I'm not sure how useful other people find HTTP POST support in fetch. If you would find this useful let me know and maybe I'll clean up the patch above and send it out for review.
That would be a great addition to fetch! You should get it in the mainstream for review for sure.
ReplyDeleteI agree, its needed functionality to help get off wget.
ReplyDeleteYes! I agree with above. Great to have that in by default.
ReplyDeleteThis would be most useful. Did you ever attempt to get this committed?
ReplyDeleteApart from that: FetchPostURL does not seem to be used, or am I mistaken? What is it for?
Did you ever get this committed? It would be most useful to avoid having to install wget or curl.
ReplyDeletefetchPostURL does not seem to be wired in. Is that correct?
I've been pinged a few times over the years about this patch. Perhaps I should clean it up and send it back to Dag-Erling Smørgrav. The issues he (correctly) pointed out to me last time were :
ReplyDelete1. there is no need for a new API function, fetchPutURL() was intended for this.
2. the mime-type should not be hardcoded, but unfortunately there's no easy way for the application to pass a mime-type with the current API, except perhaps by appending it to the flags parameter (e.g. ":image/png")
3. there should be an option to post the contents of a file; perhaps -x to post a command-line argument and -X to post the contents of a named file.
I'll try to take another look at this but time is often short. If I haven't gotten to this in a week maybe you could update this patch and send it my way?